Merge pull request #40 from djrtl/upstream

Fixed an issue with a readline from socket in bpd
This commit is contained in:
Adrian Sampson 2012-06-03 22:53:57 -07:00
commit e634b95996

View file

@ -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)