mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +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:
|
||||
torrent_state = self.manager.get_torrent_state(uid)
|
||||
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.update()
|
||||
|
|
Loading…
Add table
Reference in a new issue