fix bugs
This commit is contained in:
@@ -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 */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user