From b4fa6de4b85a749f97c39402bc622faa072b095c Mon Sep 17 00:00:00 2001 From: Eragon Date: Wed, 14 Dec 2022 17:54:24 +0100 Subject: [PATCH] Remove client after closing thread --- shoutbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shoutbox.py b/shoutbox.py index 24dc4ea..3b02689 100644 --- a/shoutbox.py +++ b/shoutbox.py @@ -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")