Fixed resource sequencing fail handling.

This commit is contained in:
Mark Qvist 2021-08-29 13:46:31 +02:00
parent 0a0d0af821
commit 1fd59f1a02

View File

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