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() { componentWillUnmount() {
proxyBackgroundService.setNotificationTapHandler(null); proxyBackgroundService.setNotificationTapHandler(null);
this.stopProxyClient(); void this.stopProxyClient();
this.appStateSubscription?.remove(); this.appStateSubscription?.remove();
} }
@@ -348,10 +348,10 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
} }
} }
stopProxyClient() { async stopProxyClient() {
try { try {
void proxyBackgroundService.syncRebindConfig(null); await proxyBackgroundService.syncRebindConfig(null);
proxyBackgroundService.stop(); await proxyBackgroundService.stop();
} catch { } catch {
/* ignore */ /* ignore */
} }