1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

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.
This commit is contained in:
Andrej Krpič 2021-07-26 12:58:35 +02:00
parent 6741d6d7a9
commit 3b7dc21ef0

View File

@ -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()))