mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-22 16:06:41 +00:00
No need to delete loops if we are going to quit
This commit is contained in:
parent
b5188fd38a
commit
5c207b6a7c
2
ircp.py
2
ircp.py
@ -240,7 +240,6 @@ class probe:
|
|||||||
while self.nicks['check']:
|
while self.nicks['check']:
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
self.loops['whois'].cancel()
|
self.loops['whois'].cancel()
|
||||||
del self.loops['whois']
|
|
||||||
await self.raw('QUIT')
|
await self.raw('QUIT')
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
pass
|
pass
|
||||||
@ -357,7 +356,6 @@ class probe:
|
|||||||
self.channels['users'][chan] = users
|
self.channels['users'][chan] = users
|
||||||
elif event == '323': # RPL_LISTEND
|
elif event == '323': # RPL_LISTEND
|
||||||
if self.channels['all']:
|
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']))))
|
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['chan'] = asyncio.create_task(self.loop_channels())
|
||||||
self.loops['nick'] = asyncio.create_task(self.loop_nick())
|
self.loops['nick'] = asyncio.create_task(self.loop_nick())
|
||||||
|
Loading…
Reference in New Issue
Block a user