mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
Fix a bug in docker binary message handling
This commit is contained in:
parent
d525f721a6
commit
fc87871d46
@ -502,7 +502,7 @@ class DockerVM(BaseNode):
|
|||||||
msg = yield from ws.receive()
|
msg = yield from ws.receive()
|
||||||
if msg.tp == aiohttp.MsgType.TEXT:
|
if msg.tp == aiohttp.MsgType.TEXT:
|
||||||
out.feed_data(msg.data.encode())
|
out.feed_data(msg.data.encode())
|
||||||
if msg.tp == aiohttp.MsgType.BINARY:
|
elif msg.tp == aiohttp.MsgType.BINARY:
|
||||||
out.feed_data(msg.data)
|
out.feed_data(msg.data)
|
||||||
elif msg.tp == aiohttp.MsgType.ERROR:
|
elif msg.tp == aiohttp.MsgType.ERROR:
|
||||||
log.critical("Docker WebSocket Error: {}".format(msg.data))
|
log.critical("Docker WebSocket Error: {}".format(msg.data))
|
||||||
|
Loading…
Reference in New Issue
Block a user