Fix spurious ttrpc client shutdown error log on success

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
This commit is contained in:
Justin Terry (VM) 2019-01-03 13:44:29 -08:00
parent 231bff7f60
commit dee0945e18

View File

@ -112,7 +112,7 @@ func (s *shim) Shutdown(ctx context.Context) error {
_, err := s.task.Shutdown(ctx, &task.ShutdownRequest{
ID: s.ID(),
})
if err != nil && err != ttrpc.ErrClosed {
if err != nil && errors.Cause(err) != ttrpc.ErrClosed {
return errdefs.FromGRPC(err)
}
return nil