From 6520e618c210fe7d91ea41d376e27cb92c820600 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 29 Oct 2007 03:54:09 +0000 Subject: [PATCH] forget reloading saved trackers --- src/interface.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/interface.py b/src/interface.py index e0539f57b..e3dd4e17c 100644 --- a/src/interface.py +++ b/src/interface.py @@ -944,8 +944,6 @@ window, please enter your password")) #now we load blocklist plugin separately since it takes much longer enable_plugins = self.config.get('enabled_plugins').split(':') - self.initial_reload_trackers(self.manager) - if "Blocklist Importer" in enable_plugins: try: self.plugins.enable_plugin("Blocklist Importer") @@ -960,35 +958,6 @@ window, please enter your password")) except KeyboardInterrupt: self.manager.quit() - def initial_reload_trackers(self, manager): - import threading - class ReloadTrackers(threading.Thread): - def __init__(self, manager): - threading.Thread.__init__(self) - self.manager = manager - def run(self): - import time - time.sleep(3) - for torrent in self.manager.get_queue(): - unique_id = self.manager.get_torrent_unique_id(torrent) - try: - if self.manager.unique_IDs[unique_id].trackers: - try: - self.manager.replace_trackers(unique_id, \ - self.manager.unique_IDs[unique_id].trackers) - except: - pass - if self.manager.unique_IDs[unique_id].uploaded_memory: - try: - self.manager.unique_IDs[unique_id].initial_uploaded_memory \ - = self.manager.unique_IDs[unique_id].uploaded_memory - except: - pass - except AttributeError: - pass - ReloadTrackers(manager).start() - - def load_plugins(self): enable_plugins = self.config.get('enabled_plugins').split(':') for plugin in enable_plugins: