fixed missing json + encode

This commit is contained in:
Giovanni Harting
2015-10-09 21:06:57 +02:00
parent 8ee1dd395c
commit 87f2d12c22

View File

@@ -365,7 +365,7 @@ class LedDProtocol(asyncio.Protocol):
log.debug(data_split) log.debug(data_split)
for line in data_split: for line in data_split:
if line: if line:
self.transport.write(JSONRPCResponseManager.handle(line, dispatcher)) self.transport.write(JSONRPCResponseManager.handle(line, dispatcher).json.encode())
def connection_lost(self, exc): def connection_lost(self, exc):
# The socket has been closed, stop the event loop # The socket has been closed, stop the event loop