mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
try to fix a race condition
This commit is contained in:
parent
f2c036650c
commit
2e5eb2b885
1 changed files with 8 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue