From 3b7dc21ef0058bbd629f84fad4c912fa2bdeb253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Krpi=C4=8D?= Date: Mon, 26 Jul 2021 12:58:35 +0200 Subject: [PATCH] Fix binary websocket access to the console telnet_writer.write is not an async method - drain() is. Remove async keyword so the call is the same as for the text websocket. --- gns3server/compute/base_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/base_node.py b/gns3server/compute/base_node.py index 4716439e..0341d101 100644 --- a/gns3server/compute/base_node.py +++ b/gns3server/compute/base_node.py @@ -430,7 +430,7 @@ class BaseNode: telnet_writer.write(msg.data.encode()) await telnet_writer.drain() elif msg.type == aiohttp.WSMsgType.BINARY: - await telnet_writer.write(msg.data) + telnet_writer.write(msg.data) await telnet_writer.drain() elif msg.type == aiohttp.WSMsgType.ERROR: log.debug("Websocket connection closed with exception {}".format(ws.exception()))