diff --git a/network/gateway/hostPool.go b/network/gateway/hostPool.go index 7d842cd97c1c85722fd712e4bd62f9dfcb2c3384..0cb7fa6c03bba3432cdbcd84307ca57a7c12d682 100644 --- a/network/gateway/hostPool.go +++ b/network/gateway/hostPool.go @@ -462,7 +462,7 @@ func (h *HostPool) checkReplace(hostId *id.ID, hostErr error) (bool, error) { } h.hostMux.Unlock() } - return doReplace && err != nil, err + return doReplace && err == nil, err } // Select a viable HostPool candidate from the NDF