From 55238e3b5bbb29dcf252d68239ddf764ecce9c4c Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 25 Feb 2020 16:56:24 +0100 Subject: [PATCH] lib/connections: Actually record connection errors (#6361) --- lib/connections/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connections/service.go b/lib/connections/service.go index 0fce09d2d..68d03ca5d 100644 --- a/lib/connections/service.go +++ b/lib/connections/service.go @@ -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 }