Use async sleep
This commit is contained in:
parent
3b1eaae929
commit
706f789fdb
|
@ -84,7 +84,7 @@ class IRCCore(object):
|
||||||
if self.alive:
|
if self.alive:
|
||||||
# TODO ramp down reconnect attempts
|
# TODO ramp down reconnect attempts
|
||||||
logging.info("Reconnecting in 3s...")
|
logging.info("Reconnecting in 3s...")
|
||||||
sleep(3)
|
await asyncio.sleep(3)
|
||||||
|
|
||||||
async def kill(self, message="Help! Another thread is killing me :("):
|
async def kill(self, message="Help! Another thread is killing me :("):
|
||||||
"""Send quit message, flush queue, and close the socket
|
"""Send quit message, flush queue, and close the socket
|
||||||
|
|
Loading…
Reference in New Issue