fix(client): prevent a checkout loop of pooled connections that aren't ready yet

This commit is contained in:
Sean McArthur
2018-04-30 14:06:12 -07:00
parent 11c92ff467
commit 5e3b43af09
4 changed files with 30 additions and 29 deletions

View File

@@ -107,7 +107,7 @@ impl<T, U> Sender<T, U> {
impl<T, U> UnboundedSender<T, U> {
pub fn is_ready(&self) -> bool {
self.giver.is_wanting()
!self.giver.is_canceled()
}
pub fn is_closed(&self) -> bool {