nil check
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 27s
Build and Publish / BuildAndDeploy (push) Successful in 2m30s

This commit is contained in:
matst80
2024-11-13 12:26:31 +01:00
parent 7cc9b48720
commit edc8d471ab

View File

@@ -266,7 +266,9 @@ func (p *SyncedPool) RemoveHost(host *RemoteHost) {
defer p.mu.Unlock()
h := p.remotes[host.Host]
if h != nil {
h.Close()
}
delete(p.remotes, host.Host)
connectedRemotes.Set(float64(len(p.remotes)))