* started refactoring onionrusers into a full module instead of a class
* now use daemon threads to prevent process hanging
This commit is contained in:
parent
e4ec850b60
commit
7830484760
8 changed files with 188 additions and 179 deletions
|
@ -55,7 +55,7 @@ class OnionrCommunicatorTimers:
|
|||
logger.debug('%s is currently using the maximum number of threads, not starting another.' % self.timerFunction.__name__)
|
||||
else:
|
||||
self.daemonInstance.threadCounts[self.timerFunction.__name__] += 1
|
||||
newThread = threading.Thread(target=self.timerFunction, args=self.args)
|
||||
newThread = threading.Thread(target=self.timerFunction, args=self.args, daemon=True)
|
||||
newThread.start()
|
||||
else:
|
||||
self.timerFunction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue