Commit 8d91245c authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Use finalizeCleanup to avoid race conditions

parent ba10c1c0
......@@ -265,8 +265,7 @@ open class VPNTunnelProxy(val packetProxy: PacketProxy,
packetProxy.stop()
cleanup()
if(!proxyThreadActive) {
forwardedPacketStore?.clear(true)
forwardedPacketStore = null
finalizeCleanup()
}
tunnelHandle?.clear(true)
tunnelHandle = null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment