summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
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()