mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-31 20:44:27 -04:00
Improved split resource transfer performance
This commit is contained in:
parent
5b17dbdfd6
commit
ac5ca78c77
2 changed files with 9 additions and 0 deletions
|
@ -186,6 +186,10 @@ class Resource:
|
|||
resource.waiting_for_hmu = False
|
||||
resource.receiving_part = False
|
||||
resource.consecutive_completed_height = -1
|
||||
|
||||
previous_window = resource.link.get_last_resource_window()
|
||||
if previous_window:
|
||||
resource.window = previous_window
|
||||
|
||||
if not resource.link.has_incoming_resource(resource):
|
||||
resource.link.register_incoming_resource(resource)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue