Fixed resource sequencing fail handling.

This commit is contained in:
Mark Qvist 2021-08-29 13:46:31 +02:00
parent 0a0d0af821
commit 1fd59f1a02
1 changed files with 1 additions and 0 deletions

View File

@ -699,6 +699,7 @@ class Resource:
if part_index % ResourceAdvertisement.HASHMAP_MAX_LEN != 0:
RNS.log("Resource sequencing error, cancelling transfer!", RNS.LOG_ERROR)
self.cancel()
return
else:
segment = part_index // ResourceAdvertisement.HASHMAP_MAX_LEN