fix stack overflow on shutdown (#2208)

This commit is contained in:
Aiden McClelland
2023-03-13 12:13:14 -06:00
committed by GitHub
parent 2f6ebd16c1
commit 7867411095
5 changed files with 40 additions and 28 deletions

View File

@@ -265,6 +265,7 @@ impl RpcContext {
self.managers.empty().await?;
self.secret_store.close().await;
self.is_closed.store(true, Ordering::SeqCst);
tracing::info!("RPC Context is shutdown");
// TODO: shutdown http servers
Ok(())
}