fix wrong draining of queued requests on handler shutdown (#1288)
This commit is contained in:
parent
da6ab85e99
commit
259502829e
@ -326,7 +326,7 @@ where
|
|||||||
if matches!(self.state, HandlerState::Active) {
|
if matches!(self.state, HandlerState::Active) {
|
||||||
debug!(self.log, "Starting handler shutdown"; "unsent_queued_requests" => self.dial_queue.len());
|
debug!(self.log, "Starting handler shutdown"; "unsent_queued_requests" => self.dial_queue.len());
|
||||||
// we now drive to completion communications already dialed/established
|
// we now drive to completion communications already dialed/established
|
||||||
for (id, req) in self.dial_queue.pop() {
|
while let Some((id, req)) = self.dial_queue.pop() {
|
||||||
self.pending_errors.push(HandlerErr::Outbound {
|
self.pending_errors.push(HandlerErr::Outbound {
|
||||||
id,
|
id,
|
||||||
proto: req.protocol(),
|
proto: req.protocol(),
|
||||||
|
Loading…
Reference in New Issue
Block a user