From 03fbb6cafed20e0c28a5dee1dc45a2a67fc3cf88 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sun, 22 Feb 2026 08:56:52 +0200 Subject: [PATCH] fix(rpc): stop IPC handle in AuthServerHandle::stop() (#22467) --- crates/rpc/rpc-builder/src/auth.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/rpc/rpc-builder/src/auth.rs b/crates/rpc/rpc-builder/src/auth.rs index 0d0a6165ff..0c5a0cbe8e 100644 --- a/crates/rpc/rpc-builder/src/auth.rs +++ b/crates/rpc/rpc-builder/src/auth.rs @@ -337,8 +337,15 @@ impl AuthServerHandle { /// Tell the server to stop without waiting for the server to stop. pub fn stop(self) -> Result<(), AlreadyStoppedError> { - let Some(handle) = self.handle else { return Ok(()) }; - handle.stop() + if let Some(handle) = self.handle { + handle.stop()?; + } + + if let Some(ipc_handle) = self.ipc_handle { + ipc_handle.stop()?; + } + + Ok(()) } /// Returns the url to the http server