Put setDaemon in its proper place.

This commit is contained in:
Jeremy Fincher 2003-03-27 06:04:56 +00:00
parent ee6a33b7e7
commit 20c37dd96f

View File

@ -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: