mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 10:05:19 +00:00
try to fix a race condition
This commit is contained in:
parent
f2c036650c
commit
2e5eb2b885
@ -928,12 +928,6 @@ window, please enter your password"))
|
|||||||
for torrent in self.manager.get_queue():
|
for torrent in self.manager.get_queue():
|
||||||
unique_id = self.manager.get_torrent_unique_id(torrent)
|
unique_id = self.manager.get_torrent_unique_id(torrent)
|
||||||
self.torrent_model_append(unique_id)
|
self.torrent_model_append(unique_id)
|
||||||
try:
|
|
||||||
if self.manager.unique_IDs[unique_id].trackers:
|
|
||||||
self.manager.replace_trackers(unique_id, \
|
|
||||||
self.manager.unique_IDs[unique_id].trackers)
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
for torrent_file in cmd_line_torrents:
|
for torrent_file in cmd_line_torrents:
|
||||||
self.interactive_add_torrent(torrent_file)
|
self.interactive_add_torrent(torrent_file)
|
||||||
@ -962,6 +956,14 @@ window, please enter your password"))
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
self.manager.quit()
|
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)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
def load_plugins(self):
|
def load_plugins(self):
|
||||||
enable_plugins = self.config.get('enabled_plugins').split(':')
|
enable_plugins = self.config.get('enabled_plugins').split(':')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user