mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
Merge pull request #40 from djrtl/upstream
Fixed an issue with a readline from socket in bpd
This commit is contained in:
commit
e634b95996
1 changed files with 4 additions and 1 deletions
|
|
@ -584,7 +584,10 @@ class Connection(object):
|
|||
|
||||
clist = None # Initially, no command list is being constructed.
|
||||
while True:
|
||||
line = (yield self.sock.readline()).strip()
|
||||
line = yield self.sock.readline()
|
||||
if not line:
|
||||
break
|
||||
line = line.strip()
|
||||
if not line:
|
||||
break
|
||||
log.debug(line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue