summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/state.go b/state.go
index 6f71cb3..249adc3 100644
--- a/state.go
+++ b/state.go
@@ -76,8 +76,8 @@ func (state *VPNState) Deregister() error {
// Save the config
state.Config.Save(&state)
- // Empty out fsm
- state.FSM = internal.FSM{}
+ // Empty out the state
+ state = &VPNState{}
return nil
}