mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-23 15:01:07 -04:00
Fixed race condition for link initiators on timed out link establishment
This commit is contained in:
parent
420d58527d
commit
049733c4b6
2 changed files with 4 additions and 4 deletions
|
@ -277,8 +277,8 @@ class Link:
|
|||
signature = packet.data[:RNS.Identity.SIGLENGTH//8]
|
||||
|
||||
if self.destination.identity.validate(signature, signed_data):
|
||||
if self.status != Link.PENDING:
|
||||
raise IOError("Invalid link state for proof validation")
|
||||
if self.status != Link.HANDSHAKE:
|
||||
raise IOError("Invalid link state for proof validation: "+str(self.status))
|
||||
|
||||
self.rtt = time.time() - self.request_time
|
||||
self.attached_interface = packet.receiving_interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue