소스 검색

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

Jakob Borg 5 년 전
부모
커밋
55238e3b5b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 	}