diff --git a/gateway/src/node/client_handling/websocket/connection_handler/mod.rs b/gateway/src/node/client_handling/websocket/connection_handler/mod.rs index 2ebfe01ba3..2bab732ae7 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/mod.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/mod.rs @@ -77,6 +77,9 @@ pub(crate) async fn handle_connection( S: AsyncRead + AsyncWrite + Unpin + Send, St: Storage, { + // If the connection handler abruptly stops, we shouldn't signal global shutdown + shutdown.mark_as_success(); + match shutdown .run_future(handle.perform_websocket_handshake()) .await