Fix a bug in docker binary message handling

pull/1215/head
Julien Duponchelle 7 years ago
parent d525f721a6
commit fc87871d46
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -502,7 +502,7 @@ class DockerVM(BaseNode):
msg = yield from ws.receive()
if msg.tp == aiohttp.MsgType.TEXT:
out.feed_data(msg.data.encode())
if msg.tp == aiohttp.MsgType.BINARY:
elif msg.tp == aiohttp.MsgType.BINARY:
out.feed_data(msg.data)
elif msg.tp == aiohttp.MsgType.ERROR:
log.critical("Docker WebSocket Error: {}".format(msg.data))

Loading…
Cancel
Save