Sfoglia il codice sorgente

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

Jakob Borg 5 anni fa
parent
commit
55238e3b5b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 	}