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
commit 7276d64f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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