control job: wrong error on context done

This commit is contained in:
Christian Schwarz 2017-10-05 21:20:01 +02:00
parent 40919d06c2
commit 83bb97a845

View File

@ -59,7 +59,7 @@ outer:
select { select {
case <-ctx.Done(): case <-ctx.Done():
log.WithError(err).Info("contex done") log.WithError(ctx.Err()).Info("context done")
server.Shutdown(context.Background()) server.Shutdown(context.Background())
break outer break outer
case err = <-served: case err = <-served: