firezone
firezone copied to clipboard
Race condition when app is restarted quickly
If you close the app and start is quickly again you can hit a race condition where the user is blocked from connecting the tunnel:
Reproduced reliably on MacOS 12 (me) and macOS 14 (on Jamil's laptop).
The above was performed with the TestFlight release build. Another easy way to reproduce this is to launch the app via Xcode, sign in, then click "Run" again to build and re-launch the app.
@roop I just hit this now. To reproduce:
- Launch app from Xcode, sign in
- Click "Stop" from Xcode
- Notice that Network extension is still running and connected
- Manually disconnect the tunnel from System prefs
- Launch app again -- now it's in a quasi state of signed in but not signed in