summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-07-19 13:44:11 +0200
committerOskar Nyberg <oskar@mullvad.net>2022-07-19 13:44:11 +0200
commit48a58d33265f0d06abd9e8b33f402c4c9458f0ae (patch)
treeea2fa8b0e4a3b8649f21969a4fa153fd64b2c5f5 /gui/src
parent5ad8b2daeab5c99305723007a2069d0e455efb29 (diff)
downloadmullvadvpn-48a58d33265f0d06abd9e8b33f402c4c9458f0ae.tar.xz
mullvadvpn-48a58d33265f0d06abd9e8b33f402c4c9458f0ae.zip
Always allow transitioning to error state
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 07a0b711fe..0b3bb1b834 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -919,7 +919,7 @@ class ApplicationMain {
// If there's a fallback state set then the app is in an assumed next state and need to check
// if it's now reached or if the current state should be ignored and set as the fallback state.
if (this.tunnelStateFallback) {
- if (this.tunnelState.state === newState.state) {
+ if (this.tunnelState.state === newState.state || newState.state === 'error') {
this.tunnelStateFallbackScheduler.cancel();
this.tunnelStateFallback = undefined;
} else {