mirror of
https://github.com/syncthing/syncthing.git
synced 2026-03-29 19:53:03 -04:00
lib/connections: Actually record connection errors (#6361)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user