Skip to content

Commit 14b0865

Browse files
committed
fmt
1 parent 46fd0ac commit 14b0865

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rt_linux.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ pub fn promote_thread_to_real_time_internal(
296296
Ok(_) => Ok(handle),
297297
Err(e) => {
298298
let (_, _, limits) = get_limits()?;
299-
if limits.rlim_cur != libc::RLIM_INFINITY && unsafe { libc::setrlimit64(libc::RLIMIT_RTTIME, &limits) } < 0 {
299+
if limits.rlim_cur != libc::RLIM_INFINITY
300+
&& unsafe { libc::setrlimit64(libc::RLIMIT_RTTIME, &limits) } < 0
301+
{
300302
return Err(AudioThreadPriorityError::new_with_inner(
301303
"setrlimit64",
302304
Box::new(OSError::last_os_error()),

0 commit comments

Comments
 (0)