gc: Wait for allocrunners to be destroyed

This commit is contained in:
Danielle Tomlinson
2018-12-14 16:05:16 +01:00
parent 934d2e6bf6
commit 6f636ea15a

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:
}