mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-12-25 23:49:28 -05:00
Improved link teardown handling.
This commit is contained in:
parent
c7e5f4612a
commit
5e21bdd233
@ -419,6 +419,11 @@ class Link:
|
||||
self.shared_key = None
|
||||
self.derived_key = None
|
||||
|
||||
if self.destination != None:
|
||||
if self.destination.direction == RNS.Destination.IN:
|
||||
if self in self.destination.links:
|
||||
self.destination.links.remove(self)
|
||||
|
||||
if self.callbacks.link_closed != None:
|
||||
self.callbacks.link_closed(self)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user