TunnelsManager: Remove assert
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -265,7 +265,6 @@ class TunnelsManager {
|
|||||||
if let tunnelInOperation = tunnels.first(where: { $0.status != .inactive }) {
|
if let tunnelInOperation = tunnels.first(where: { $0.status != .inactive }) {
|
||||||
wg_log(.info, message: "Tunnel '\(tunnel.name)' waiting for deactivation of '\(tunnelInOperation.name)'")
|
wg_log(.info, message: "Tunnel '\(tunnel.name)' waiting for deactivation of '\(tunnelInOperation.name)'")
|
||||||
tunnel.status = .waiting
|
tunnel.status = .waiting
|
||||||
assert(tunnelInOperation.status != .inactive)
|
|
||||||
if tunnelInOperation.status != .deactivating {
|
if tunnelInOperation.status != .deactivating {
|
||||||
startDeactivation(of: tunnelInOperation)
|
startDeactivation(of: tunnelInOperation)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user