Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: gracefully shutdown app #25

Merged
merged 2 commits into from
Jan 22, 2025
Merged

chore: gracefully shutdown app #25

merged 2 commits into from
Jan 22, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Jan 17, 2025

When the app is quit (terminated), in any way, an active VPN connection should first be shutdown by sending the stop response over the tunnel. Previously we were only catching when the app was closed via the quit button we supply, but we can actually catch any non-force-quit terminations using the AppDelegate.

Additionally:

  • Quitting the app while the VPN is stopping should wait for the existing stop operation to finish
  • Quitting the app while the VPN is starting should wait for the start operation to finish, and then start and wait for a stop operation.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson marked this pull request as ready for review January 17, 2025 04:58
@ethanndickson ethanndickson self-assigned this Jan 17, 2025
@ethanndickson ethanndickson requested a review from coadler January 21, 2025 16:25
@ethanndickson ethanndickson merged commit 8b338a2 into main Jan 22, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/app-shutdown branch January 23, 2025 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants