diff options
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/api0/serverlist.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/api0/serverlist.go b/pkg/api/api0/serverlist.go index b56f880..de48ae0 100644 --- a/pkg/api/api0/serverlist.go +++ b/pkg/api/api0/serverlist.go @@ -458,7 +458,7 @@ func (s *ServerList) UpdateServerByID(id string, u *ServerUpdate) bool { // get the server if it's eligible for updates esrv, exists := s.servers2[id] - if !exists || !s.isServerAlive(esrv, t) || !u.Heartbeat || !s.isServerGhost(esrv, t) { + if !(exists || s.isServerAlive(esrv, t) || (u.Heartbeat && s.isServerGhost(esrv, t))) { if s.isServerGone(esrv, t) { s.freeServer(esrv) } |