mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 04:03:29 +00:00
Update apps/desktop/desktop_native/proxy/src/main.rs
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
This commit is contained in:
@@ -56,11 +56,9 @@ async fn main() {
|
||||
let should_foreground = windows::allow_foreground();
|
||||
|
||||
let sock_paths = desktop_core::ipc::all_paths("bitwarden");
|
||||
let sock_path = *sock_paths
|
||||
.iter()
|
||||
.filter(|p| p.exists())
|
||||
.collect::<Vec<_>>()
|
||||
.first()
|
||||
let sock_path = sock_paths
|
||||
.into_iter()
|
||||
.find(|p| p.exists())
|
||||
.unwrap_or_else(|| {
|
||||
error!("No valid socket path found.");
|
||||
std::process::exit(1);
|
||||
|
||||
Reference in New Issue
Block a user