pygui ignore adding/removing duplicate wireless link events, ignore wireless link events for node to itself
This commit is contained in:
parent
3c4a908fd5
commit
2b97b311ab
2 changed files with 7 additions and 0 deletions
|
@ -208,6 +208,9 @@ class CoreClient:
|
|||
node_one_id = event.link.node_one_id
|
||||
node_two_id = event.link.node_two_id
|
||||
network_id = event.link.network_id
|
||||
if node_one_id == node_two_id:
|
||||
logging.warning("ignoring invalid link: %s", event)
|
||||
return
|
||||
canvas_node_one = self.canvas_nodes[node_one_id]
|
||||
canvas_node_two = self.canvas_nodes[node_two_id]
|
||||
if event.message_type == core_pb2.MessageType.ADD:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue