Fix error/reconnect during retrieval of command list. MpdDispatcher returns [] instead of None after the filter refactoring

This commit is contained in:
Stein Magnus Jodal 2011-06-12 14:19:42 +02:00
parent 4090c14ae1
commit a6c8571005

View File

@ -49,7 +49,7 @@ class MpdSession(asynchat.async_chat):
Format a response from the MPD command handlers and send it to the
client.
"""
if response is not None:
if response:
response = LINE_TERMINATOR.join(response)
logger.debug(u'Response to [%s]:%s: %s', self.client_address,
self.client_port, indent(response))