From fc87871d46800bca77e16bb1ee0a8defe183869d Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 11 Jul 2017 19:00:29 +0200 Subject: [PATCH] Fix a bug in docker binary message handling --- gns3server/compute/docker/docker_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py index 257fc062..7dfa4136 100644 --- a/gns3server/compute/docker/docker_vm.py +++ b/gns3server/compute/docker/docker_vm.py @@ -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))