From 706f789fdb765d5469c4571eb0541ccb2a8f39ec Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 1 May 2017 08:31:40 -0700 Subject: [PATCH] Use async sleep --- pyircbot/irccore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyircbot/irccore.py b/pyircbot/irccore.py index 9ff5749..43644e7 100644 --- a/pyircbot/irccore.py +++ b/pyircbot/irccore.py @@ -84,7 +84,7 @@ class IRCCore(object): if self.alive: # TODO ramp down reconnect attempts logging.info("Reconnecting in 3s...") - sleep(3) + await asyncio.sleep(3) async def kill(self, message="Help! Another thread is killing me :("): """Send quit message, flush queue, and close the socket