defer mtx.Unlock()
if _, ok := waiting[ctr.UUID]; !ok {
c.Logf("container completed twice: %s -- perhaps completed after stub instance was killed?", ctr.UUID)
defer mtx.Unlock()
if _, ok := waiting[ctr.UUID]; !ok {
c.Logf("container completed twice: %s -- perhaps completed after stub instance was killed?", ctr.UUID)