diff --git a/client/gc.go b/client/gc.go index c08c43bdb..2ec640d08 100644 --- a/client/gc.go +++ b/client/gc.go @@ -183,7 +183,7 @@ func (a *AllocGarbageCollector) destroyAllocRunner(allocID string, ar AllocRunne ar.Destroy() select { - case <-ar.WaitCh(): + case <-ar.DestroyCh(): case <-a.shutdownCh: }