Explorar o código

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

Jakob Borg %!s(int64=5) %!d(string=hai) anos
pai
achega
55238e3b5b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/connections/service.go

+ 1 - 1
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
 	}