summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts2
-rw-r--r--gui/src/shared/connect-helper.ts4
2 files changed, 4 insertions, 2 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 {
diff --git a/gui/src/shared/connect-helper.ts b/gui/src/shared/connect-helper.ts
index d5c563c7ca..26128513ed 100644
--- a/gui/src/shared/connect-helper.ts
+++ b/gui/src/shared/connect-helper.ts
@@ -18,7 +18,9 @@ export function reconnectEnabled(
tunnelState: TunnelState['state'],
) {
return (
- connectedToDaemon && loggedIn && (tunnelState === 'connected' || tunnelState === 'connecting')
+ connectedToDaemon &&
+ loggedIn &&
+ (tunnelState === 'connected' || tunnelState === 'connecting' || tunnelState === 'error')
);
}