fn: lb_agent Close should close shutdown channel (#925)

This commit is contained in:
Tolga Ceylan
2018-04-09 10:56:15 -07:00
committed by Reed Allman
parent dc6a3305eb
commit c1f0707b60

View File

@@ -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()