use trigger_write() instead of a raw .send(b"")

This commit is contained in:
jesopo 2019-06-06 23:19:57 +01:00
parent 9c6b9c3964
commit 24ca7ed97f

View file

@ -322,6 +322,7 @@ class Bot(object):
elif server.ping_due() and not server.ping_sent:
server.send_ping()
server.ping_sent = True
if not server.socket.connected:
self._events.on("server.disconnect").call(server=server)
self.disconnect(server)
@ -339,4 +340,4 @@ class Bot(object):
throttle_filled = True
if throttle_filled:
self._wtrigger_client.send(b"TRIGGER")
self.trigger_write()