From d7a470b030cdc2217a0cf1eb60247fd8fc23a672 Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Mon, 13 Jun 2022 15:27:49 -0400 Subject: [PATCH] skip yourself when checking zombies --- logic/zombie.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logic/zombie.go b/logic/zombie.go index badd7d1d..0deeaaf3 100644 --- a/logic/zombie.go +++ b/logic/zombie.go @@ -84,6 +84,9 @@ func InitalizeZombies() { continue } for _, othernode := range othernodes { + if node.ID == othernode.ID { + continue + } if node.MacAddress == othernode.MacAddress { if node.LastCheckIn > othernode.LastCheckIn { zombies = append(zombies, othernode.ID)