mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-22 18:52:45 +01:00
Fix for failing test in URL.
This commit is contained in:
parent
23eb75f33b
commit
a8584ba898
@ -751,14 +751,14 @@ class CommandThread(threading.Thread):
|
|||||||
"""Just does some extra logging and error-recovery for commands that need
|
"""Just does some extra logging and error-recovery for commands that need
|
||||||
to run in threads.
|
to run in threads.
|
||||||
"""
|
"""
|
||||||
def __init__(self, target=None, args=None):
|
def __init__(self, target=None, args=None, kwargs=None):
|
||||||
(self.name, self.command, self.cb) = args
|
(self.name, self.command, self.cb) = args
|
||||||
world.threadsSpawned += 1
|
world.threadsSpawned += 1
|
||||||
threadName = 'Thread #%s (for %s.%s)' % (world.threadsSpawned,
|
threadName = 'Thread #%s (for %s.%s)' % (world.threadsSpawned,
|
||||||
self.cb.name(), self.name)
|
self.cb.name(), self.name)
|
||||||
log.debug('Spawning thread %s' % threadName)
|
log.debug('Spawning thread %s' % threadName)
|
||||||
threading.Thread.__init__(self, target=target,
|
threading.Thread.__init__(self, target=target,
|
||||||
name=threadName, args=args)
|
name=threadName, args=args, kwargs=kwargs)
|
||||||
self.setDaemon(True)
|
self.setDaemon(True)
|
||||||
self.originalThreaded = self.cb.threaded
|
self.originalThreaded = self.cb.threaded
|
||||||
self.cb.threaded = True
|
self.cb.threaded = True
|
||||||
|
Loading…
Reference in New Issue
Block a user