Miguel Grinberg
5 years ago
No known key found for this signature in database
GPG Key ID: 36848B262DF5F06C
2 changed files with
4 additions and
4 deletions
-
socketio/asyncio_server.py
-
socketio/server.py
|
|
@ -443,11 +443,11 @@ class AsyncServer(server.Server): |
|
|
|
namespace_list = [namespace] |
|
|
|
for n in namespace_list: |
|
|
|
if n != '/' and self.manager.is_connected(sid, n): |
|
|
|
self.manager.pre_disconnect(sid, namespace=namespace) |
|
|
|
self.manager.pre_disconnect(sid, namespace=n) |
|
|
|
await self._trigger_event('disconnect', n, sid) |
|
|
|
self.manager.disconnect(sid, n) |
|
|
|
if namespace == '/' and self.manager.is_connected(sid, namespace): |
|
|
|
self.manager.pre_disconnect(sid, namespace=namespace) |
|
|
|
self.manager.pre_disconnect(sid, namespace='/') |
|
|
|
await self._trigger_event('disconnect', '/', sid) |
|
|
|
self.manager.disconnect(sid, '/') |
|
|
|
|
|
|
|
|
|
@ -652,11 +652,11 @@ class Server(object): |
|
|
|
namespace_list = [namespace] |
|
|
|
for n in namespace_list: |
|
|
|
if n != '/' and self.manager.is_connected(sid, n): |
|
|
|
self.manager.pre_disconnect(sid, namespace=namespace) |
|
|
|
self.manager.pre_disconnect(sid, namespace=n) |
|
|
|
self._trigger_event('disconnect', n, sid) |
|
|
|
self.manager.disconnect(sid, n) |
|
|
|
if namespace == '/' and self.manager.is_connected(sid, namespace): |
|
|
|
self.manager.pre_disconnect(sid, namespace=namespace) |
|
|
|
self.manager.pre_disconnect(sid, namespace='/') |
|
|
|
self._trigger_event('disconnect', '/', sid) |
|
|
|
self.manager.disconnect(sid, '/') |
|
|
|
|
|
|
|