summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-09-03 17:05:30 +0300
committerAndrej Mihajlov <and@mullvad.net>2018-09-05 14:05:20 +0300
commit7e3197fecb95dbbc5843a37c66148fe585197e31 (patch)
tree30ef7533153cf953aadd5a88e99f420174ef308b
parentb10ddd73fa078e188ec88084130ef02eaa459dc7 (diff)
downloadmullvadvpn-7e3197fecb95dbbc5843a37c66148fe585197e31.tar.xz
mullvadvpn-7e3197fecb95dbbc5843a37c66148fe585197e31.zip
Remove the call to disconnectTunnel() because setAccount(null) does that automatically
-rw-r--r--gui/packages/desktop/src/renderer/app.js8
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 a1427605e3..8c170c1446 100644
--- a/gui/packages/desktop/src/renderer/app.js
+++ b/gui/packages/desktop/src/renderer/app.js
@@ -200,11 +200,9 @@ export default class AppRenderer {
const actions = this._reduxActions;
try {
- await Promise.all([
- this.disconnectTunnel(),
- this._daemonRpc.setAccount(null),
- this._fetchAccountHistory(),
- ]);
+ await this._daemonRpc.setAccount(null);
+ await this._fetchAccountHistory();
+
actions.account.loggedOut();
actions.history.replace('/login');