From ca8ed01dbffea6db991792b74a7cf961b0a32c28 Mon Sep 17 00:00:00 2001 From: Andrei Neagu Date: Wed, 20 May 2020 17:34:51 +0200 Subject: [PATCH] coroutine is properly awaited for --- socketio/asyncio_pubsub_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketio/asyncio_pubsub_manager.py b/socketio/asyncio_pubsub_manager.py index cff1ff0..0e41f25 100644 --- a/socketio/asyncio_pubsub_manager.py +++ b/socketio/asyncio_pubsub_manager.py @@ -72,7 +72,7 @@ class AsyncPubSubManager(AsyncManager): async def can_disconnect(self, sid, namespace): if self.is_connected(sid, namespace): # client is in this server, so we can disconnect directly - return super().can_disconnect(sid, namespace) + return await super().can_disconnect(sid, namespace) else: # client is in another server, so we post request to the queue await self._publish({'method': 'disconnect', 'sid': sid,