Commit 18a31e3 kar
committed
1 parent 4adff58 commit 18a31e3 Copy full SHA for 18a31e3
File tree 1 file changed +2
-0
lines changed
Sources/WireGuardApp/Tunnel
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ protocol TunnelsManagerActivationDelegate: AnyObject {
17
17
func tunnelActivationAttemptSucceeded( tunnel: TunnelContainer ) // startTunnel succeeded
18
18
func tunnelActivationFailed( tunnel: TunnelContainer , error: TunnelsManagerActivationError ) // status didn't change to connected
19
19
func tunnelActivationSucceeded( tunnel: TunnelContainer ) // status changed to connected
20
+ func tunnelDeactivated( tunnel: TunnelContainer )
20
21
}
21
22
22
23
class TunnelsManager {
@@ -522,6 +523,7 @@ class TunnelsManager {
522
523
if session. status == . disconnected {
523
524
tunnel. onDeactivated ? ( )
524
525
tunnel. onDeactivated = nil
526
+ self . activationDelegate? . tunnelDeactivated ( tunnel: tunnel)
525
527
}
526
528
527
529
if tunnel. status == . restarting && session. status == . disconnected {
You can’t perform that action at this time.
0 commit comments