mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Delete .fastresume on resume of a non-seeding torrent.
This commit is contained in:
parent
f2065ae344
commit
54b512a7e0
1 changed files with 5 additions and 1 deletions
|
@ -352,9 +352,13 @@ class Torrent:
|
||||||
|
|
||||||
if self.handle.is_seed():
|
if self.handle.is_seed():
|
||||||
self.state = "Seeding"
|
self.state = "Seeding"
|
||||||
|
# Only delete the .fastresume file if we're still downloading stuff
|
||||||
|
self.delete_fastresume()
|
||||||
else:
|
else:
|
||||||
self.state = "Downloading"
|
self.state = "Downloading"
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
def move_storage(self, dest):
|
def move_storage(self, dest):
|
||||||
"""Move a torrent's storage location"""
|
"""Move a torrent's storage location"""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue