mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
fix(rpc): stop IPC handle in AuthServerHandle::stop() (#22467)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user