From d4e69fb7ceecdb98584f36e085a186eb4da23b07 Mon Sep 17 00:00:00 2001 From: sjrodahl Date: Fri, 8 Jul 2022 21:36:11 +0200 Subject: [PATCH] Fix #952: add missing await (#957) --- src/socketio/asyncio_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socketio/asyncio_server.py b/src/socketio/asyncio_server.py index 9360307..a9f440f 100644 --- a/src/socketio/asyncio_server.py +++ b/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