diff --git a/common/client-libs/gateway-client/src/socket_state.rs b/common/client-libs/gateway-client/src/socket_state.rs index 386ad5b147..2e3f096b3f 100644 --- a/common/client-libs/gateway-client/src/socket_state.rs +++ b/common/client-libs/gateway-client/src/socket_state.rs @@ -158,6 +158,9 @@ impl PartiallyDelegated { _ = shutdown.recv() => { log::trace!("GatewayClient listener: Received shutdown"); log::debug!("GatewayClient listener: Exiting"); + // The packet router a task client, and as such we need to make + // sure it's dropped to not stall the shutdown process. + drop(packet_router); return; } _ = &mut notify_receiver => {