From 5c207b6a7c69ac693899f5c7c6df2b439d503abd Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sun, 18 Jun 2023 22:12:00 -0400 Subject: [PATCH] No need to delete loops if we are going to quit --- ircp.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ircp.py b/ircp.py index 684bf36..163115d 100644 --- a/ircp.py +++ b/ircp.py @@ -240,7 +240,6 @@ class probe: while self.nicks['check']: await asyncio.sleep(1) self.loops['whois'].cancel() - del self.loops['whois'] await self.raw('QUIT') except asyncio.CancelledError: pass @@ -357,7 +356,6 @@ class probe: self.channels['users'][chan] = users elif event == '323': # RPL_LISTEND if self.channels['all']: - del self.loops['init'] # TODO: do we need to cancle this first? debug(self.display + '\033[36mLIST\033[0m found \033[93m{0}\033[0m channel(s)'.format(str(len(self.channels['all'])))) self.loops['chan'] = asyncio.create_task(self.loop_channels()) self.loops['nick'] = asyncio.create_task(self.loop_nick())