Fix the issue that VpnService can't be closed correctly in special cases

This commit is contained in:
chen08209
2024-05-01 21:29:54 +08:00
parent 92294b49c6
commit 4d16820526

View File

@@ -78,6 +78,7 @@ Future<void> vpnService() async {
TileListenerWithVpn(
onStop: () async {
await app?.tip(appLocalizations.stopVpn);
await globalState.stopSystemProxy();
clashCore.shutdown();
exit(0);
},