mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 10:28:39 +00:00
remove fastresume file when a torrent is unpaused
This commit is contained in:
parent
8a723474ed
commit
9ac92ca982
1 changed files with 4 additions and 0 deletions
|
@ -716,6 +716,10 @@ window, please enter your password"))
|
||||||
for uid in unique_ids:
|
for uid in unique_ids:
|
||||||
torrent_state = self.manager.get_torrent_state(uid)
|
torrent_state = self.manager.get_torrent_state(uid)
|
||||||
if torrent_state["is_paused"]:
|
if torrent_state["is_paused"]:
|
||||||
|
try:
|
||||||
|
os.remove(self.manager.unique_IDs[uid].filename + ".fastresume")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.manager.set_user_pause(uid, False, True)
|
self.manager.set_user_pause(uid, False, True)
|
||||||
|
|
||||||
self.update()
|
self.update()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue