Fixed a crash that only showed up when switching protocols really fast on Android. Every switch was doing a full restart of the VPN under the hood - kill the old connection, start a new one. The problem is the old connection’s background threads didn’t have time to clean up before the new ones started, and they’d end up colliding. Rare, but when it hit, the whole app went down. Turns out the library we use (sing-box) actually has a built-in way to swap configs without restarting anything - just feed it the new config and it handles the rest. Switched to that, crash is gone.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.