Fix using is_shutdown_poll

This commit is contained in:
Jon Häggblad
2025-02-17 10:57:46 +01:00
parent 7bceeadf16
commit e9269da897
2 changed files with 4 additions and 4 deletions
@@ -618,7 +618,7 @@ where
.action_sender
.unbounded_send(Action::UpdatePendingAck(id, new_delay))
{
if !self.task_client.is_shutdown() {
if !self.task_client.is_shutdown_poll() {
error!("Failed to send update action to the controller: {err}");
}
}
@@ -629,7 +629,7 @@ where
.action_sender
.unbounded_send(Action::new_insert(pending_acks))
{
if !self.task_client.is_shutdown() {
if !self.task_client.is_shutdown_poll() {
error!("Failed to send insert action to the controller: {err}");
}
}
@@ -646,7 +646,7 @@ where
.send((messages, transmission_lane))
.await
{
if !self.task_client.is_shutdown() {
if !self.task_client.is_shutdown_poll() {
error!("Failed to forward messages to the real message sender: {err}");
}
}
@@ -95,7 +95,7 @@ where
S: AsyncRead + AsyncWrite + Unpin + Send,
{
// don't accept any new requests if we have already received shutdown
if handle.shutdown.is_shutdown() {
if handle.shutdown.is_shutdown_poll() {
debug!("stopping the handle as we have received a shutdown");
return;
}