app/start: skip cleanup if shim is nil
test / test (push) Successful in 19s
Details
test / test (push) Successful in 19s
Details
Shim is created before any system operation happens. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
60e91b9b0f
commit
431dc095e5
|
@ -154,6 +154,11 @@ func (a *app) Wait() (int, error) {
|
|||
a.lock.Lock()
|
||||
defer a.lock.Unlock()
|
||||
|
||||
if a.shim == nil {
|
||||
fmsg.VPrintln("shim not initialised, skipping cleanup")
|
||||
return 1, nil
|
||||
}
|
||||
|
||||
var r int
|
||||
|
||||
if cmd := a.shim.Unwrap(); cmd == nil {
|
||||
|
|
Loading…
Reference in New Issue