diff options
author | spoob <spoob@gmx.de> | 2010-01-03 21:12:02 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-01-03 21:12:02 +0100 |
commit | e9dc8ea08452c1555e28f4ac1970b96315ec4376 (patch) | |
tree | 129279f4fc2f95e8a37543fca1c73a1aea726df1 /module/thread_list.py | |
parent | SecuredIn plugin (diff) | |
download | pyload-e9dc8ea08452c1555e28f4ac1970b96315ec4376.tar.xz |
Cleaned Reconnect XML Config
Diffstat (limited to 'module/thread_list.py')
-rw-r--r-- | module/thread_list.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/thread_list.py b/module/thread_list.py index d3eb4d203..5d0bcf53a 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -160,12 +160,12 @@ class Thread_List(object): def init_reconnect(self): """initialise a reonnect""" - if not self.parent.config['general']['use_reconnect'] or self.reconnecting or not self.parent.server_methods.is_time_reconnect(): + if not self.parent.config['reconnect']['activated'] or self.reconnecting or not self.parent.server_methods.is_time_reconnect(): return False - if not exists(self.parent.config['general']['reconnect_method']): - self.parent.logger.info(self.parent.config['general']['reconnect_method'] + " not found") - self.parent.config['general']['use_reconnect'] = False + if not exists(self.parent.config['reconnect']['method']): + self.parent.logger.info(self.parent.config['reconnect']['method'] + " not found") + self.parent.config['reconnect']['activated'] = False return False self.lock.acquire() @@ -200,7 +200,7 @@ class Thread_List(object): def reconnect(self): self.parent.logger.info("Start reconnect") - reconn = subprocess.Popen(self.parent.config['general']['reconnect_method'])#, stdout=subprocess.PIPE) + reconn = subprocess.Popen(self.parent.config['activated']['method'])#, stdout=subprocess.PIPE) reconn.wait() time.sleep(1) ip = "" |