summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-25 20:20:33 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-25 20:20:33 +0100
commit805cb9d007e61edf2a211467b65b868bf35b49f1 (patch)
tree01d4df81dc689b5ed676dfee1024d263ec9507d7 /module/ThreadManager.py
parentcleanup stuff (diff)
downloadpyload-805cb9d007e61edf2a211467b65b868bf35b49f1.tar.xz
great fixes http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0134872dea10970c-pi
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index 5e36738d3..0a2ce674b 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -147,6 +147,7 @@ class ThreadManager:
sleep(1)
ip = self.getIP()
self.core.hookManager.afterReconnecting(ip)
+ self.closeAllConnecions()
self.log.info(_("Reconnected, new IP: %s") % ip)
@@ -229,7 +230,7 @@ class ThreadManager:
thread = PluginThread.DecrypterThread(self, job)
def closeAllConnecions(self):
- """closes all connections, when a reconnect has made """
+ """closes all connections, when a reconnect was made """
for pyfile in self.core.files.cache.itervalues():
if pyfile.plugin and pyfile.plugin.req:
pyfile.plugin.req.http.closeAll()