mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-18 20:36:04 +00:00
Fix: Firewall alert would open two alerts
This commit is contained in:
1 parent
dc32e92d9a
commit
e638479203
5 files changed
+7
-54
No files matched your search
@@ -99,10 +99,8 @@ class NearbyConnection {
|
||||
|
||||
// If the error is a connection reset, it could be due to firewall issues.
|
||||
if err == .posix(.ENOTCONN) {
|
||||
log("[NearbyConnection \(self.id)] Network not connected error detected.")
|
||||
ConnectionFailureTracker.shared.recordFailure {
|
||||
NearbyConnectionManager.shared.mainAppDelegate?.showFirewallAlert()
|
||||
}
|
||||
log("[NearbyConnection \(self.id)] Network not connected error detected (firewall likely).")
|
||||
self.lastError = NearbyError.firewallError
|
||||
}
|
||||
|
||||
if err == .posix(.ENETDOWN) {
|
||||
|
||||
Reference in new issue
Block a user