Fix the issue that VpnService can't be closed correctly in special cases
This commit is contained in:
@@ -78,6 +78,7 @@ Future<void> vpnService() async {
|
||||
TileListenerWithVpn(
|
||||
onStop: () async {
|
||||
await app?.tip(appLocalizations.stopVpn);
|
||||
await globalState.stopSystemProxy();
|
||||
clashCore.shutdown();
|
||||
exit(0);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user