From 6f636ea15aa741d7b4d94aeffc6cf680d6382d4d Mon Sep 17 00:00:00 2001 From: Danielle Tomlinson Date: Fri, 14 Dec 2018 16:05:16 +0100 Subject: [PATCH] gc: Wait for allocrunners to be destroyed --- client/gc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: }