From 8b8510cf71873b208c9fffd2e19c3f00b3341e8d Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 8 Jul 2020 15:59:57 +1000 Subject: [PATCH] finally-clause --- ts/components/session/LeftPaneMessageSection.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ts/components/session/LeftPaneMessageSection.tsx b/ts/components/session/LeftPaneMessageSection.tsx index c34307d14..03210e07f 100644 --- a/ts/components/session/LeftPaneMessageSection.tsx +++ b/ts/components/session/LeftPaneMessageSection.tsx @@ -487,11 +487,6 @@ export class LeftPaneMessageSection extends React.Component { 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 { id: 'connectToServerFail', type: 'error', }); + } finally { + this.setState({ + loading: false, + }); } }