diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-27 15:06:25 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-27 15:06:25 +0200 |
commit | be06c8376a8543c0cf7c1ef5f115d1dbbb26d08f (patch) | |
tree | 9888c763c35de23ec395c54b861e2ac3a23de1bf /module/thread_list.py | |
parent | fixed strange setFossrmatter bug (diff) | |
download | pyload-be06c8376a8543c0cf7c1ef5f115d1dbbb26d08f.tar.xz |
little fixes
Diffstat (limited to 'module/thread_list.py')
-rw-r--r-- | module/thread_list.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/module/thread_list.py b/module/thread_list.py index 065318a56..7031b166e 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -18,6 +18,10 @@ # ### #python +import time +import urllib2 +import re +import subprocess from Queue import Queue from threading import Lock #my @@ -111,8 +115,9 @@ class Thread_List(object): self.f_relation[1] += 1 self.select_thread() - def reconnect(): - reconn = subprocess.Popen(reconnectMethod) + def reconnect(self): + self.parent.logger.debug("reconnect") + reconn = subprocess.Popen(self.parent.config['reconnectMethod']) reconn.wait() ip = re.match(".*Current IP Address: (.*)</body>.*", urllib2.urlopen("http://checkip.dyndns.org/").read()).group(1) #versuchen neue ip aus zu lesen while ip == "": #solange versuch bis neue ip ausgelesen |