mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-02 12:57:09 -05:00
Registration ordering
This commit is contained in:
parent
bd1024ff5c
commit
c40791e573
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,6 @@ class Resource:
|
|||
|
||||
try:
|
||||
if not self.ensure_link(): return
|
||||
self.advertisement_packet.send()
|
||||
self.last_activity = time.time()
|
||||
self.started_transferring = self.last_activity
|
||||
self.adv_sent = self.last_activity
|
||||
|
|
@ -554,6 +553,7 @@ class Resource:
|
|||
self.status = Resource.ADVERTISED
|
||||
self.retries_left = self.max_adv_retries
|
||||
self.link.register_outgoing_resource(self)
|
||||
self.advertisement_packet.send()
|
||||
RNS.log("Sent resource advertisement for "+RNS.prettyhexrep(self.hash), RNS.LOG_EXTREME) if RNS.sl(RNS.LOG_EXTREME) else None
|
||||
except Exception as e:
|
||||
RNS.log("Could not advertise resource, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue