From bb74878e94f90473d26c9057372afb2f8d92b830 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 23 Dec 2022 23:24:26 +0100 Subject: [PATCH] Reordered property assignment --- RNS/Link.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RNS/Link.py b/RNS/Link.py index 920813b..ec8d378 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -272,6 +272,8 @@ class Link: self.rtt = time.time() - self.request_time self.attached_interface = packet.receiving_interface self.__remote_identity = self.destination.identity + self.status = Link.ACTIVE + self.activated_at = time.time() RNS.Transport.activate_link(self) RNS.log("Link "+str(self)+" established with "+str(self.destination)+", RTT is "+str(round(self.rtt, 3))+"s", RNS.LOG_VERBOSE) rtt_data = umsgpack.packb(self.rtt) @@ -279,8 +281,6 @@ class Link: rtt_packet.send() self.had_outbound() - self.status = Link.ACTIVE - self.activated_at = time.time() if self.callbacks.link_established != None: thread = threading.Thread(target=self.callbacks.link_established, args=(self,)) thread.daemon = True