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, ...@@ -265,8 +265,7 @@ open class VPNTunnelProxy(val packetProxy: PacketProxy,
packetProxy.stop() packetProxy.stop()
cleanup() cleanup()
if(!proxyThreadActive) { if(!proxyThreadActive) {
forwardedPacketStore?.clear(true) finalizeCleanup()
forwardedPacketStore = null
} }
tunnelHandle?.clear(true) tunnelHandle?.clear(true)
tunnelHandle = null 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