diff --git a/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift b/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift index abe0f98..07cba96 100644 --- a/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift +++ b/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift @@ -456,9 +456,7 @@ extension TunnelKitProvider: SessionProxyDelegate { public func sessionDidStop(_: SessionProxy, shouldReconnect: Bool) { log.info("Session did stop") - if shouldReconnect { - reasserting = true - } + reasserting = shouldReconnect socket?.shutdown() }