summaryrefslogtreecommitdiff
path: root/src/state.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-20 17:08:55 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-20 17:08:55 +0200
commit0e46f074570b066194a0b1b958b0a90c3eec6ca6 (patch)
treed6809a4f9efa126affe458b78560237f83e37de0 /src/state.go
parent1a311e1820852cb9ea6ce646c0880e6b6915c657 (diff)
State: Always allow Deregister
Diffstat (limited to 'src/state.go')
-rw-r--r--src/state.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/state.go b/src/state.go
index 76cd635..d8c0075 100644
--- a/src/state.go
+++ b/src/state.go
@@ -56,9 +56,6 @@ func (state *VPNState) Register(name string, directory string, stateCallback fun
}
func (state *VPNState) Deregister() error {
- if state.InState(DEREGISTERED) {
- return errors.New("app already deregistered")
- }
// Close the log file
state.CloseLog()