diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/state.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.go b/src/state.go index d8c0075..121ef6d 100644 --- a/src/state.go +++ b/src/state.go @@ -28,10 +28,10 @@ type VPNState struct { } func (state *VPNState) Register(name string, directory string, stateCallback func(string, string, string), debug bool) error { - state.InitializeFSM() if !state.InState(DEREGISTERED) { return errors.New("app already registered") } + state.InitializeFSM() state.Name = name state.ConfigDirectory = directory state.StateCallback = stateCallback |
