mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-17 18:41:41 +02:00
add engine stop to run in foreground mode
This commit is contained in:
@ -295,6 +295,13 @@ func (c *ConnectClient) run(
|
||||
<-engineCtx.Done()
|
||||
c.statusRecorder.ClientTeardown()
|
||||
|
||||
c.engineMutex.Lock()
|
||||
err = c.Engine().Stop()
|
||||
c.engineMutex.Unlock()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
backOff.Reset()
|
||||
|
||||
log.Info("stopped NetBird client")
|
||||
|
Reference in New Issue
Block a user