fix queue bug. oops
This commit is contained in:
parent
54a61c8695
commit
46942d15dc
|
@ -619,6 +619,9 @@ class Manager:
|
||||||
for callback in self.event_callbacks[event['event_type']]:
|
for callback in self.event_callbacks[event['event_type']]:
|
||||||
callback(event)
|
callback(event)
|
||||||
|
|
||||||
|
elif event['event_type'] is self.constants['EVENT_FINISHED']:
|
||||||
|
if event['message'] == "torrent has finished downloading":
|
||||||
|
|
||||||
# Queue seeding torrent to bottom if needed
|
# Queue seeding torrent to bottom if needed
|
||||||
if self.get_pref('queue_seeds_to_bottom'):
|
if self.get_pref('queue_seeds_to_bottom'):
|
||||||
self.queue_bottom(event['unique_ID'])
|
self.queue_bottom(event['unique_ID'])
|
||||||
|
@ -626,6 +629,7 @@ class Manager:
|
||||||
# save fast resume once torrent finishes so as to not recheck
|
# save fast resume once torrent finishes so as to not recheck
|
||||||
# seed if client crashes
|
# seed if client crashes
|
||||||
self.save_fastresume_data(event['unique_ID'])
|
self.save_fastresume_data(event['unique_ID'])
|
||||||
|
|
||||||
elif event['event_type'] is self.constants['EVENT_TRACKER_ANNOUNCE']:
|
elif event['event_type'] is self.constants['EVENT_TRACKER_ANNOUNCE']:
|
||||||
self.set_supp_torrent_state_val(event['unique_ID'],
|
self.set_supp_torrent_state_val(event['unique_ID'],
|
||||||
"tracker_status",
|
"tracker_status",
|
||||||
|
|
Loading…
Reference in New Issue