Compare commits

...

2 Commits

Author SHA1 Message Date
Pascal Fischer
933cf1c84d extract getting engine 2024-10-01 15:44:32 +02:00
Pascal Fischer
5eb936b49e add engine stop to run in foreground mode 2024-10-01 15:39:38 +02:00

View File

@@ -295,6 +295,16 @@ func (c *ConnectClient) run(
<-engineCtx.Done()
c.statusRecorder.ClientTeardown()
c.engineMutex.Lock()
engine := c.Engine()
if engine != nil {
err = engine.Stop()
}
c.engineMutex.Unlock()
if err != nil {
return err
}
backOff.Reset()
log.Info("stopped NetBird client")