From 46022720a14d254beffb3ced4e48a18510bc8ca0 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sun, 23 Jun 2013 20:37:21 +0200 Subject: [PATCH] boobot: Proper ^C closing --- contrib/boobot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/boobot.py b/contrib/boobot.py index 219a7613..1f0e548a 100755 --- a/contrib/boobot.py +++ b/contrib/boobot.py @@ -151,6 +151,8 @@ class BoobotBrowser(StandardBrowser): class MyThread(Thread): + daemon = True + def __init__(self, bot): Thread.__init__(self) self.weboob = Weboob(storage=StandardStorage(STORAGE_FILE)) @@ -200,6 +202,7 @@ class MyThread(Thread): def stop(self): self.weboob.want_stop() + self.weboob.deinit() class Boobot(SingleServerIRCBot):