mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-26 07:20:18 +00:00
Reordered property assignment
This commit is contained in:
parent
549d22be68
commit
bb74878e94
@ -272,6 +272,8 @@ class Link:
|
|||||||
self.rtt = time.time() - self.request_time
|
self.rtt = time.time() - self.request_time
|
||||||
self.attached_interface = packet.receiving_interface
|
self.attached_interface = packet.receiving_interface
|
||||||
self.__remote_identity = self.destination.identity
|
self.__remote_identity = self.destination.identity
|
||||||
|
self.status = Link.ACTIVE
|
||||||
|
self.activated_at = time.time()
|
||||||
RNS.Transport.activate_link(self)
|
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)
|
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)
|
rtt_data = umsgpack.packb(self.rtt)
|
||||||
@ -279,8 +281,6 @@ class Link:
|
|||||||
rtt_packet.send()
|
rtt_packet.send()
|
||||||
self.had_outbound()
|
self.had_outbound()
|
||||||
|
|
||||||
self.status = Link.ACTIVE
|
|
||||||
self.activated_at = time.time()
|
|
||||||
if self.callbacks.link_established != None:
|
if self.callbacks.link_established != None:
|
||||||
thread = threading.Thread(target=self.callbacks.link_established, args=(self,))
|
thread = threading.Thread(target=self.callbacks.link_established, args=(self,))
|
||||||
thread.daemon = True
|
thread.daemon = True
|
||||||
|
Loading…
Reference in New Issue
Block a user