use trigger_write() instead of a raw .send(b"")
This commit is contained in:
parent
9c6b9c3964
commit
24ca7ed97f
1 changed files with 2 additions and 1 deletions
|
@ -322,6 +322,7 @@ class Bot(object):
|
||||||
elif server.ping_due() and not server.ping_sent:
|
elif server.ping_due() and not server.ping_sent:
|
||||||
server.send_ping()
|
server.send_ping()
|
||||||
server.ping_sent = True
|
server.ping_sent = True
|
||||||
|
|
||||||
if not server.socket.connected:
|
if not server.socket.connected:
|
||||||
self._events.on("server.disconnect").call(server=server)
|
self._events.on("server.disconnect").call(server=server)
|
||||||
self.disconnect(server)
|
self.disconnect(server)
|
||||||
|
@ -339,4 +340,4 @@ class Bot(object):
|
||||||
throttle_filled = True
|
throttle_filled = True
|
||||||
|
|
||||||
if throttle_filled:
|
if throttle_filled:
|
||||||
self._wtrigger_client.send(b"TRIGGER")
|
self.trigger_write()
|
||||||
|
|
Loading…
Reference in a new issue