Merge pull request #21 from stevvooe/return-correct-error-close

ttrpc: return correct error on (*Client).Close
This commit is contained in:
Stephen Day
2018-01-12 16:38:48 -08:00
committed by GitHub

View File

@@ -199,7 +199,7 @@ func (c *Client) run() {
}
// broadcast the shutdown error to the remaining waiters.
for _, waiter := range waiters {
waiter.errs <- shutdownErr
waiter.errs <- c.err
}
return
}