Remove client after closing thread

This commit is contained in:
Eragon 2022-12-14 17:54:24 +01:00
parent ae7657abbd
commit b4fa6de4b8
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class Shoutbox(object):
logging.debug("STOP: Halt all irc user threads")
for client in self.irc_clients:
self.irc_clients[client][0].stop()
self.irc_clients.pop(client)
self._handler.join()
logging.debug("STOP: Shoutbox thread closed")