Ensure all handler events are covered (#5945)

* Ensure handler events are covered
This commit is contained in:
Age Manning
2024-06-19 15:02:37 +10:00
committed by GitHub
parent 1503f7d652
commit f69ccc3b70

View File

@@ -374,6 +374,12 @@ where
id: outbound_info.req_id,
})));
}
// Also handle any events that are awaiting to be sent to the behaviour
if !self.events_out.is_empty() {
return Poll::Ready(Some(self.events_out.remove(0)));
}
Poll::Ready(None)
}