mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Put setDaemon in its proper place.
This commit is contained in:
parent
ee6a33b7e7
commit
20c37dd96f
@ -282,6 +282,8 @@ class CommandThread(threading.Thread):
|
||||
args=(irc, msg, args))
|
||||
self.irc = irc
|
||||
self.msg = msg
|
||||
self.setDaemon(True)
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
threading.Thread.run(self)
|
||||
@ -328,7 +330,6 @@ class Privmsg(irclib.IrcCallback):
|
||||
def callCommand(self, f, irc, msg, args):
|
||||
if self.threaded:
|
||||
thread = CommandThread(f, irc, msg, args)
|
||||
thread.setDaemon(True)
|
||||
thread.start()
|
||||
debug.printf('Spawned new thread: %s' % thread)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user