[service] Fix starting and stopping of SPN

This commit is contained in:
Daniel
2024-08-27 16:42:22 +02:00
parent 57f08eccd7
commit 7f0b5ca149
2 changed files with 6 additions and 4 deletions

View File

@@ -619,7 +619,7 @@ func (i *Instance) shutdown(exitCode int) {
// Stopping returns whether the instance is shutting down.
func (i *Instance) Stopping() bool {
return i.ctx.Err() == nil
return i.ctx.Err() != nil
}
// Stopped returns a channel that is triggered when the instance has shut down.