Merge pull request #21 from stevvooe/return-correct-error-close
ttrpc: return correct error on (*Client).Close
This commit is contained in:
commit
7276d64f93
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user