gc: Wait for allocrunners to be destroyed

This commit is contained in:
Danielle Tomlinson 2018-12-14 16:05:16 +01:00
parent cb78a90f40
commit f3fa9d1406

View file

@ -183,7 +183,7 @@ func (a *AllocGarbageCollector) destroyAllocRunner(allocID string, ar AllocRunne
ar.Destroy()
select {
case <-ar.WaitCh():
case <-ar.DestroyCh():
case <-a.shutdownCh:
}