Browse Source

Update asyncio_client.py

去除这个赋值会恢复主动断开连接时disconnect事件的触发
pull/427/head^2
higrw123 6 years ago
committed by GitHub
parent
commit
c040927a83
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      socketio/asyncio_client.py

2
socketio/asyncio_client.py

@ -242,7 +242,7 @@ class AsyncClient(client.Client):
namespace=n))
await self._send_packet(packet.Packet(
packet.DISCONNECT, namespace='/'))
self.connected = False
# self.connected = False
await self.eio.disconnect(abort=True)
def start_background_task(self, target, *args, **kwargs):

Loading…
Cancel
Save