firezone icon indicating copy to clipboard operation
firezone copied to clipboard

Race condition when app is restarted quickly

Open AndrewDryga opened this issue 1 year ago • 1 comments

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:

image

Reproduced reliably on MacOS 12 (me) and macOS 14 (on Jamil's laptop).

AndrewDryga avatar Jan 11 '24 18:01 AndrewDryga

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.

jamilbk avatar Jan 12 '24 04:01 jamilbk

@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
Screenshot 2024-02-26 at 9 34 32 PM

jamilbk avatar Feb 27 '24 05:02 jamilbk