From c1f0707b60ec6faaefe37948eb51b5dfda1a9842 Mon Sep 17 00:00:00 2001 From: Tolga Ceylan Date: Mon, 9 Apr 2018 10:56:15 -0700 Subject: [PATCH] fn: lb_agent Close should close shutdown channel (#925) --- api/agent/lb_agent.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/agent/lb_agent.go b/api/agent/lb_agent.go index be14ce5c1..77cf605cb 100644 --- a/api/agent/lb_agent.go +++ b/api/agent/lb_agent.go @@ -136,6 +136,7 @@ func (a *lbAgent) Close() error { ctx, cancel := context.WithTimeout(context.Background(), runnerPoolShutdownTimeout) defer cancel() + close(a.shutdown) a.rp.Shutdown(ctx) err := a.delegatedAgent.Close() a.wg.Wait()