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.
pull/1933/head
Andrej Krpič 3 years ago
parent 6741d6d7a9
commit 3b7dc21ef0

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

Loading…
Cancel
Save