diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-02 17:01:59 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-02 17:01:59 +0200 |
commit | 56754bcdbd15db520318a88ac779e1eb027853a8 (patch) | |
tree | 2d1a09b3fbe36eb6575e2ea757014b5c3d2dcb46 /module/ThreadManager.py | |
parent | upload to fix (diff) | |
download | pyload-56754bcdbd15db520318a88ac779e1eb027853a8.tar.xz |
added several checks to improve stability
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py index a8e8b2772..0a7408ecf 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -96,7 +96,17 @@ class ThreadManager: if self.core.debug: print_exc() self.checkThreadCount() - self.assignJob() + + try: + self.assignJob() + except Exception, e: + self.log.warning("Assign job error", e) + if self.core.debug: + print_exc() + + sleep(0.1) + self.assignJob() + #it may be failed non critical so we try it again #---------------------------------------------------------------------- def tryReconnect(self): |