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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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
}