From df25de89f732c2a6b4369f6495de3ed8c4f2613b Mon Sep 17 00:00:00 2001 From: Matteo Mecucci Date: Sun, 3 Jun 2012 11:29:35 +0200 Subject: [PATCH] Fixed an issue with a readline from socket in bpd --- beetsplug/bpd/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/bpd/__init__.py b/beetsplug/bpd/__init__.py index 681331a85..e909bdc2f 100644 --- a/beetsplug/bpd/__init__.py +++ b/beetsplug/bpd/__init__.py @@ -583,9 +583,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() log.debug(line) if clist is not None: