extract getting engine

This commit is contained in:
Pascal Fischer 2024-10-01 15:44:32 +02:00
parent 5eb936b49e
commit 933cf1c84d

View File

@ -296,7 +296,10 @@ func (c *ConnectClient) run(
c.statusRecorder.ClientTeardown()
c.engineMutex.Lock()
err = c.Engine().Stop()
engine := c.Engine()
if engine != nil {
err = engine.Stop()
}
c.engineMutex.Unlock()
if err != nil {
return err