From 1fd59f1a02e060d63a744568e83affe7d43de841 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 29 Aug 2021 13:46:31 +0200 Subject: [PATCH] Fixed resource sequencing fail handling. --- RNS/Resource.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RNS/Resource.py b/RNS/Resource.py index ecefcb7..ec0b2e2 100644 --- a/RNS/Resource.py +++ b/RNS/Resource.py @@ -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