From 7f2154110c2a1bf5d73333e62b51902b9dca4800 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 30 Aug 2024 13:33:51 +0200 Subject: [PATCH] Cleanup --- RNS/Link.py | 5 +++++ RNS/Transport.py | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/RNS/Link.py b/RNS/Link.py index 2bf9af4..c3f541d 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -900,6 +900,11 @@ class Link: if not packet.packet_hash in resource.req_hashlist: resource.req_hashlist.append(packet.packet_hash) resource.request(plaintext) + + # TODO: Test and possibly enable this at some point + # def request_job(): + # resource.request(plaintext) + # threading.Thread(target=request_job, daemon=True).start() elif packet.context == RNS.Packet.RESOURCE_HMU: plaintext = self.decrypt(packet.data) diff --git a/RNS/Transport.py b/RNS/Transport.py index 777619a..f360460 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1343,8 +1343,10 @@ class Transport: new_raw += packet.raw[2:] Transport.transmit(outbound_interface, new_raw) Transport.link_table[packet.destination_hash][0] = time.time() - else: - pass + + # TODO: Test and possibly enable this at some point + # Transport.jobs_locked = False + # return # Announce handling. Handles logic related to incoming