mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +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))
|
args=(irc, msg, args))
|
||||||
self.irc = irc
|
self.irc = irc
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
|
self.setDaemon(True)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
threading.Thread.run(self)
|
threading.Thread.run(self)
|
||||||
@ -328,7 +330,6 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
def callCommand(self, f, irc, msg, args):
|
def callCommand(self, f, irc, msg, args):
|
||||||
if self.threaded:
|
if self.threaded:
|
||||||
thread = CommandThread(f, irc, msg, args)
|
thread = CommandThread(f, irc, msg, args)
|
||||||
thread.setDaemon(True)
|
|
||||||
thread.start()
|
thread.start()
|
||||||
debug.printf('Spawned new thread: %s' % thread)
|
debug.printf('Spawned new thread: %s' % thread)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user