1
0

fix: check for shutdown after unlock

This commit is contained in:
dump_stack() 2023-05-25 23:01:42 +00:00
parent d7cf88e34f
commit b17433ab42
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

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