mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-04-27 22:25:37 +00:00
Cancel pending resource segments recursively
This commit is contained in:
parent
23c0a493b1
commit
739523d559
1 changed files with 1 additions and 0 deletions
|
|
@ -1065,6 +1065,7 @@ class Resource:
|
|||
"""
|
||||
Cancels transferring the resource.
|
||||
"""
|
||||
if self.next_segment: self.next_segment.cancel()
|
||||
if self.status < Resource.COMPLETE:
|
||||
self.status = Resource.FAILED
|
||||
if self.initiator:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue