gc: Wait for allocrunners to be destroyed
This commit is contained in:
parent
cb78a90f40
commit
f3fa9d1406
|
@ -183,7 +183,7 @@ func (a *AllocGarbageCollector) destroyAllocRunner(allocID string, ar AllocRunne
|
|||
ar.Destroy()
|
||||
|
||||
select {
|
||||
case <-ar.WaitCh():
|
||||
case <-ar.DestroyCh():
|
||||
case <-a.shutdownCh:
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue