1
0

fix: check for shutdown after unlock

This commit is contained in:
2023-05-25 23:01:42 +00:00
parent d7cf88e34f
commit b17433ab42

View File

@ -174,6 +174,12 @@ func (cmd *KernelCmd) Generate(g *Globals, km config.Target, max int) (err error
swg.Add()
if cmd.shutdown {
err = nil
swg.Done()
return
}
if max <= 0 {
log.Print("Max is reached")
swg.Done()