Commit e327d672 authored by Daniel Wolf's avatar Daniel Wolf

finalizeCleanup() is never called on the main thread

parent 8e145cd0
......@@ -271,11 +271,7 @@ open class VPNTunnelProxy(val packetProxy: PacketProxy,
fileDescriptor.tryClosing()
}
pipesToClose.clear()
if (Looper.getMainLooper().thread == Thread.currentThread()) {
GlobalScope.launch {
forwardedPacketStore?.clear()
}
} else forwardedPacketStore?.clear()
forwardedPacketStore?.clear()
tunnelHandle?.clear(false)
forwardedPacketStore = null
}
......
Markdown is supported
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