lib/connections: Actually record connection errors (#6361)

This commit is contained in:
Jakob Borg
2020-02-25 16:56:24 +01:00
committed by GitHub
parent f0e33d052a
commit 55238e3b5b

View File

@@ -713,7 +713,7 @@ func (s *service) ConnectionStatus() map[string]ConnectionStatusEntry {
}
func (s *service) setConnectionStatus(address string, err error) {
if errors.Cause(err) != context.Canceled {
if errors.Cause(err) == context.Canceled {
return
}