summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}