diff options
author | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-23 22:02:15 +0000 |
---|---|---|
committer | Marcos Pinto <markybob@dipconsultants.com> | 2007-10-23 22:02:15 +0000 |
commit | bc9cfe94d5b0e73ab276af9a9fb983c2bd70de71 (patch) | |
tree | c1060765b4acae9e67a20c9e37a6dd8fd5fc83ee | |
parent | c8f97a9421f4de4cb76666f4681833a6ee503eb0 (diff) | |
download | deluge-bc9cfe94d5b0e73ab276af9a9fb983c2bd70de71.tar.gz deluge-bc9cfe94d5b0e73ab276af9a9fb983c2bd70de71.tar.bz2 deluge-bc9cfe94d5b0e73ab276af9a9fb983c2bd70de71.zip |
hopefully fix segfault
-rw-r--r-- | src/interface.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/interface.py b/src/interface.py index 247a69a7a..6e304cc43 100644 --- a/src/interface.py +++ b/src/interface.py @@ -943,6 +943,18 @@ window, please enter your password")) self.load_tabs_order() #now we load blocklist plugin separately since it takes much longer enable_plugins = self.config.get('enabled_plugins').split(':') + 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: + self.manager.replace_trackers(unique_id, \ + self.manager.unique_IDs[unique_id].trackers) + if self.manager.unique_IDs[unique_id].uploaded_memory: + self.manager.unique_IDs[unique_id].initial_uploaded_memory \ + = self.manager.unique_IDs[unique_id].uploaded_memory + except AttributeError: + pass + if "Blocklist Importer" in enable_plugins: try: self.plugins.enable_plugin("Blocklist Importer") @@ -957,18 +969,6 @@ window, please enter your password")) except KeyboardInterrupt: self.manager.quit() - 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: - self.manager.replace_trackers(unique_id, \ - self.manager.unique_IDs[unique_id].trackers) - if self.manager.unique_IDs[unique_id].uploaded_memory: - self.manager.unique_IDs[unique_id].initial_uploaded_memory \ - = self.manager.unique_IDs[unique_id].uploaded_memory - except AttributeError: - pass - def load_plugins(self): enable_plugins = self.config.get('enabled_plugins').split(':') for plugin in enable_plugins: |