finally-clause

pull/1225/head
Vincent 5 years ago
parent 6cb05c3677
commit 8b8510cf71

@ -487,11 +487,6 @@ export class LeftPaneMessageSection extends React.Component<Props, State> {
this.setState({ loading: true });
}
});
this.handleToggleOverlay(undefined);
this.setState({
loading: false,
});
} catch (e) {
this.setState({
loading: false,
@ -502,6 +497,10 @@ export class LeftPaneMessageSection extends React.Component<Props, State> {
id: 'connectToServerFail',
type: 'error',
});
} finally {
this.setState({
loading: false,
});
}
}

Loading…
Cancel
Save