summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-06 12:59:17 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-06 12:59:17 +0200
commitefe37d710cbc8097b02f06e3350f0e8467a23058 (patch)
tree86e63f57298f0af00677126330ef209b598ce713 /state.go
parent50a2eb976314409df5d45d9b417ad5b61e7d208b (diff)
State: ShouldRenewButton is possible in more states
Diffstat (limited to 'state.go')
-rw-r--r--state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.go b/state.go
index 79afeff..884c871 100644
--- a/state.go
+++ b/state.go
@@ -598,7 +598,7 @@ func (state *VPNState) RenewSession() error {
}
func (state *VPNState) ShouldRenewButton() bool {
- if !state.InFSMState(fsm.CONNECTED) {
+ if !state.InFSMState(fsm.CONNECTED) && !state.InFSMState(fsm.CONNECTING) && !state.InFSMState(fsm.HAS_CONFIG) && !state.InFSMState(fsm.DISCONNECTING) {
return false
}