Reset reasserting flag on plain shutdown

This commit is contained in:
Davide De Rosa 2019-03-08 13:16:03 +01:00
parent e3b8a6b16b
commit 70ed2a4d83
1 changed files with 1 additions and 3 deletions

View File

@ -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()
}