TunnelsManager: Ignore status changes on tunnel providers we don't have

This commit is contained in:
Roopesh Chander 2019-02-08 04:38:08 +05:30
parent 6014b4b8a6
commit 443ecb1e20
1 changed files with 1 additions and 2 deletions

View File

@ -316,8 +316,7 @@ class TunnelsManager {
let tunnelConfiguration = tunnelProvider.tunnelConfiguration,
let tunnel = self.tunnels.first(where: { $0.tunnelConfiguration == tunnelConfiguration }) else { return }
if tunnel.tunnelProvider != tunnelProvider {
tunnel.tunnelProvider = tunnelProvider
tunnel.refreshStatus()
return
}
wg_log(.debug, message: "Tunnel '\(tunnel.name)' connection status changed to '\(tunnel.tunnelProvider.connection.status)'")