Fix panic in context server configuration (#34118)
Release Notes: - Fixed a panic that could occur when configuring MCP servers
This commit is contained in:
parent
45d200f2f8
commit
7114a5ca99
1 changed files with 3 additions and 1 deletions
|
@ -740,7 +740,9 @@ fn wait_for_context_server(
|
|||
});
|
||||
|
||||
cx.spawn(async move |_cx| {
|
||||
let result = rx.await.unwrap();
|
||||
let result = rx
|
||||
.await
|
||||
.map_err(|_| Arc::from("Context server store was dropped"))?;
|
||||
drop(subscription);
|
||||
result
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue