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