daemon: fixed wireless movement callback to not calculate config for position callback on links that are down
This commit is contained in:
parent
f811373f0b
commit
e5c06fe47c
1 changed files with 4 additions and 1 deletions
|
@ -226,7 +226,10 @@ class WirelessNode(CoreNetworkBase):
|
|||
for oiface, bridge_name in self.bridges.values():
|
||||
if iface == oiface:
|
||||
continue
|
||||
self.calc_link(iface, oiface)
|
||||
key = get_key(iface.node.id, oiface.node.id)
|
||||
link = self.links.get(key)
|
||||
if link.linked:
|
||||
self.calc_link(iface, oiface)
|
||||
|
||||
def calc_link(self, iface1: CoreInterface, iface2: CoreInterface) -> None:
|
||||
point1 = iface1.node.position.get()
|
||||
|
|
Loading…
Reference in a new issue