This commit is contained in:
Nikolay Kim 2024-11-04 21:50:43 +05:00
parent 6d1d77398c
commit 9bf6f3111d

View file

@ -477,7 +477,8 @@ where
fn poll_service(&mut self, cx: &mut Context<'_>) -> Poll<PollService<U>> {
// check service readiness
if self.flags.contains(Flags::READY) {
if self.ready_count != 0 && self.shared.service.poll_not_ready(cx).is_pending() {
if self.ready_count != 0 && self.shared.service.poll_not_ready(cx).is_pending()
{
self.ready_count -= 1;
return Poll::Ready(self.check_error());
}