Skip to content

Commit

Permalink
[temp] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
belovdv committed Mar 14, 2023
1 parent 85fc976 commit a900301
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ impl Client {
}

pub unsafe fn open(s: &str) -> io::Result<Client> {
Ok(Self::from_fifo(s)?.unwrap_or(Self::from_pipe(s)?))
if let Some(client) = Self::from_fifo(s)? {
return Ok(client);
}
Self::from_pipe(s)
}

/// `--jobserver-auth=fifo:PATH`
Expand Down

0 comments on commit a900301

Please sign in to comment.