Improved link teardown handling.
This commit is contained in:
parent
c7e5f4612a
commit
5e21bdd233
@ -419,6 +419,11 @@ class Link:
|
|||||||
self.shared_key = None
|
self.shared_key = None
|
||||||
self.derived_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:
|
if self.callbacks.link_closed != None:
|
||||||
self.callbacks.link_closed(self)
|
self.callbacks.link_closed(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user