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.
This commit is contained in:
Simon Chopin 2012-02-17 20:15:25 +01:00
parent bc3b51705a
commit 52a34c7510

View file

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