fix(secret): fail early if secret connection fails (#1777)
This commit is contained in:
parent
1839ad375f
commit
6b4a3d565c
1 changed files with 4 additions and 0 deletions
|
|
@ -162,6 +162,10 @@ async fn secret_agent_stream_impl(
|
|||
.await?;
|
||||
|
||||
proxy.register_with_capabilities(identifier, 1).await?;
|
||||
// fail early if we can't connect, closing the channel
|
||||
let _ = secret_service::SecretService::connect(secret_service::EncryptionType::Dh)
|
||||
.await
|
||||
.map_err(|e| Arc::new(e))?;
|
||||
|
||||
while let Some(request) = rx.recv().await {
|
||||
match request {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue