summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index bb693d695..5e36738d3 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -227,3 +227,9 @@ class ThreadManager:
else:
thread = PluginThread.DecrypterThread(self, job)
+
+ def closeAllConnecions(self):
+ """closes all connections, when a reconnect has made """
+ for pyfile in self.core.files.cache.itervalues():
+ if pyfile.plugin and pyfile.plugin.req:
+ pyfile.plugin.req.http.closeAll()