Stop RPC servers on drop (#11679)

* Stop RPC servers on drop

* Switch to existing wrappers that stop RPC servers

* Apply formatting
This commit is contained in:
Nazar Mokrynskyi
2022-07-21 12:11:19 +03:00
committed by GitHub
parent b7ecd1af85
commit 8c323a2069
+2 -1
View File
@@ -369,7 +369,8 @@ where
match tokio::task::block_in_place(|| {
config.tokio_handle.block_on(futures::future::try_join(http_fut, ws_fut))
}) {
Ok((http, ws)) => Ok(Box::new((http, ws))),
Ok((http, ws)) =>
Ok(Box::new((waiting::HttpServer(Some(http)), waiting::WsServer(Some(ws))))),
Err(e) => Err(Error::Application(e)),
}
}