diff options
Diffstat (limited to 'module/thread_list.py')
-rw-r--r-- | module/thread_list.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/module/thread_list.py b/module/thread_list.py index 531bc7401..8ae78b089 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -125,7 +125,6 @@ class Thread_List(object): with open(self.parent.config['failed_file'], 'a') as f: f.write(pyfile.url+"\n") - self.lock.release() return True @@ -151,15 +150,12 @@ class Thread_List(object): if self.reconnecting: return False - + self.lock.acquire() if self.check_reconnect(): - self.reconnecting = True - self.reconnect() - time.sleep(1.1) self.reconnecting = False @@ -185,7 +181,6 @@ class Thread_List(object): else: return False - def reconnect(self): reconn = subprocess.Popen(self.parent.config['reconnectMethod']) reconn.wait() |