diff --git a/lib/connections/service.go b/lib/connections/service.go
index <HASH>..<HASH> 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
 	}
lib/connections: Actually record connection errors (#<I>)