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:
parent
0d4fc503ec
commit
5285ba7aa8
|
@ -440,7 +440,7 @@ extension OpenVPNTunnelProvider: GenericSocketDelegate {
|
||||||
}
|
}
|
||||||
if session.canRebindLink() {
|
if session.canRebindLink() {
|
||||||
session.rebindLink(producer.link(withMTU: cfg.mtu))
|
session.rebindLink(producer.link(withMTU: cfg.mtu))
|
||||||
shouldReconnect = false
|
reasserting = false
|
||||||
} else {
|
} else {
|
||||||
session.setLink(producer.link(withMTU: cfg.mtu))
|
session.setLink(producer.link(withMTU: cfg.mtu))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue