boobot: Proper ^C closing
This commit is contained in:
parent
b6021ec90d
commit
46022720a1
1 changed files with 3 additions and 0 deletions
|
|
@ -151,6 +151,8 @@ class BoobotBrowser(StandardBrowser):
|
||||||
|
|
||||||
|
|
||||||
class MyThread(Thread):
|
class MyThread(Thread):
|
||||||
|
daemon = True
|
||||||
|
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
Thread.__init__(self)
|
Thread.__init__(self)
|
||||||
self.weboob = Weboob(storage=StandardStorage(STORAGE_FILE))
|
self.weboob = Weboob(storage=StandardStorage(STORAGE_FILE))
|
||||||
|
|
@ -200,6 +202,7 @@ class MyThread(Thread):
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.weboob.want_stop()
|
self.weboob.want_stop()
|
||||||
|
self.weboob.deinit()
|
||||||
|
|
||||||
|
|
||||||
class Boobot(SingleServerIRCBot):
|
class Boobot(SingleServerIRCBot):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue