diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-12-18 13:31:21 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-12-18 15:58:22 +0100 |
| commit | 7667fc3aceb8fe6346a2e76cf9886adf588f3c66 (patch) | |
| tree | 0dcdb0351266358509dc4a7acbd7fc851d0ac11c | |
| parent | cddac494b349c3bbeb7cd8db2b0a2b7d32eb2832 (diff) | |
| download | mullvadvpn-7667fc3aceb8fe6346a2e76cf9886adf588f3c66.tar.xz mullvadvpn-7667fc3aceb8fe6346a2e76cf9886adf588f3c66.zip | |
Switch to the disconnected state ahead of time to make the app look more responsive
| -rw-r--r-- | gui/packages/desktop/src/renderer/app.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gui/packages/desktop/src/renderer/app.js b/gui/packages/desktop/src/renderer/app.js index 70fe1365d7..2ec2d2992b 100644 --- a/gui/packages/desktop/src/renderer/app.js +++ b/gui/packages/desktop/src/renderer/app.js @@ -240,11 +240,9 @@ export default class AppRenderer { } } - disconnectTunnel() { - const actions = this._reduxActions; - - // switch to disconnected state ahead of time to make the app look more responsive - actions.connection.disconnected(); + disconnectTunnel(): Promise<void> { + // switch to the disconnected state ahead of time to make the app look more responsive + this._reduxActions.connection.disconnected(); return this._daemonRpc.disconnectTunnel(); } |
