From 52a34c751029a57a7cc7340c10bd38a72eab46b3 Mon Sep 17 00:00:00 2001 From: Simon Chopin Date: Fri, 17 Feb 2012 20:15:25 +0100 Subject: [PATCH] Fix the list command in BPD The cmd_list method wasn't a generator as run() expected, but instead loaded directly the data onto the connection withoutactually sending it. --- beetsplug/bpd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/bpd/__init__.py b/beetsplug/bpd/__init__.py index ae1c84399..8a5cdee45 100644 --- a/beetsplug/bpd/__init__.py +++ b/beetsplug/bpd/__init__.py @@ -998,7 +998,7 @@ class Server(BaseServer): c.execute(statement, subvals) for row in c: - conn.send(show_tag_canon + u': ' + unicode(row[0])) + yield show_tag_canon + u': ' + unicode(row[0]) def cmd_count(self, conn, tag, value): """Returns the number and total time of songs matching the