From 3e20cb1b6767aa23179fbd94cf10dbfce9685ac6 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 14 Jan 2025 18:19:07 +0100 Subject: [PATCH] Added resource EIFR continuity to split resource handling --- RNS/Link.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RNS/Link.py b/RNS/Link.py index ba39706..a96300e 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -180,6 +180,7 @@ class Link: self.callbacks = LinkCallbacks() self.resource_strategy = Link.ACCEPT_NONE self.last_resource_window = None + self.last_resource_eifr = None self.outgoing_resources = [] self.incoming_resources = [] self.pending_requests = [] @@ -1144,6 +1145,7 @@ class Link: def resource_concluded(self, resource): if resource in self.incoming_resources: self.last_resource_window = resource.window + self.last_resource_eifr = resource.eifr self.incoming_resources.remove(resource) if resource in self.outgoing_resources: self.outgoing_resources.remove(resource) @@ -1176,6 +1178,9 @@ class Link: def get_last_resource_window(self): return self.last_resource_window + def get_last_resource_eifr(self): + return self.last_resource_eifr + def cancel_outgoing_resource(self, resource): if resource in self.outgoing_resources: self.outgoing_resources.remove(resource)