This commit is contained in:
2026-08-05 21:20:56 +08:00
parent 79562ecb5c
commit 89f55cf884
+4 -4
View File
@@ -287,7 +287,7 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
componentWillUnmount() {
proxyBackgroundService.setNotificationTapHandler(null);
this.stopProxyClient();
void this.stopProxyClient();
this.appStateSubscription?.remove();
}
@@ -348,10 +348,10 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
}
}
stopProxyClient() {
async stopProxyClient() {
try {
void proxyBackgroundService.syncRebindConfig(null);
proxyBackgroundService.stop();
await proxyBackgroundService.syncRebindConfig(null);
await proxyBackgroundService.stop();
} catch {
/* ignore */
}