From 0e46f074570b066194a0b1b958b0a90c3eec6ca6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 20 Apr 2022 17:08:55 +0200 Subject: State: Always allow Deregister --- src/state.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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() -- cgit v1.2.3