mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-05-15 03:45:44 +00:00
use new instance of neighbour info object when removing neighbour
This commit is contained in:
@@ -724,7 +724,7 @@ public:
|
||||
for (int i = 0; i < MAX_NEIGHBOURS; i++) {
|
||||
NeighbourInfo* neighbour = &neighbours[i];
|
||||
if(memcmp(neighbour->id.pub_key, pubkey, key_len) == 0){
|
||||
neighbours[i] = {}; // clear neighbour entry
|
||||
neighbours[i] = NeighbourInfo(); // clear neighbour entry
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user