This commit is contained in:
JackDoan
2026-04-15 13:27:55 -05:00
parent 9dfa2a484c
commit e448eb1a8c
3 changed files with 4 additions and 2 deletions

View File

@@ -133,7 +133,9 @@ func (c *Control) Stop() {
if err := c.f.Close(); err != nil {
c.l.WithError(err).Error("Close interface failed")
}
c.stateLock.Lock()
c.state = Stopped
c.stateLock.Unlock()
}
// ShutdownBlock will listen for and block on term and interrupt signals, calling Control.Stop() once signalled