Set reasserting to false if canRebindLink()

Code is currently disabled (canRebindLink() is hardcoded to false),
still it's good to stay consistent with semantics of
reasserting = false, i.e. "connection has become active again".
This commit is contained in:
Davide De Rosa 2020-05-09 14:59:10 +02:00
parent 0d4fc503ec
commit 5285ba7aa8
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ extension OpenVPNTunnelProvider: GenericSocketDelegate {
}
if session.canRebindLink() {
session.rebindLink(producer.link(withMTU: cfg.mtu))
shouldReconnect = false
reasserting = false
} else {
session.setLink(producer.link(withMTU: cfg.mtu))
}