Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AndroidUtils
VPNTunnelProxy
Commits
8d91245c
Commit
8d91245c
authored
Jan 24, 2021
by
Daniel Wolf
Browse files
Use finalizeCleanup to avoid race conditions
parent
ba10c1c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/src/main/java/com/frostnerd/vpntunnelproxy/VPNTunnelProxy.kt
View file @
8d91245c
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment