Browse Source

Fix #952: add missing await (#957)

pull/962/head
sjrodahl 3 years ago
committed by GitHub
parent
commit
d4e69fb7ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/socketio/asyncio_server.py

2
src/socketio/asyncio_server.py

@ -446,7 +446,7 @@ class AsyncServer(server.Server):
if namespace in self.handlers or namespace in self.namespace_handlers:
sid = self.manager.connect(eio_sid, namespace)
if sid is None:
self._send_packet(eio_sid, self.packet_class(
await self._send_packet(eio_sid, self.packet_class(
packet.CONNECT_ERROR, data='Unable to connect',
namespace=namespace))
return

Loading…
Cancel
Save