diff --git a/NearbyShare/NearbyConnection.swift b/NearbyShare/NearbyConnection.swift index 86463f0..56222e3 100644 --- a/NearbyShare/NearbyConnection.swift +++ b/NearbyShare/NearbyConnection.swift @@ -84,6 +84,7 @@ class NearbyConnection { self.lastError = err log("Connection Error: \(err)") + // If the error is a connection reset, it could be due to firewall issues. if err == .posix(.ENOTCONN) { ConnectionFailureTracker.shared.recordFailure { NearbyConnectionManager.shared.mainAppDelegate?.showFirewallAlert()