Skip to content

Commit 97df227

Browse files
author
Vitali Lovich
committed
Fix wait_timeout value
1 parent 95e4dc2 commit 97df227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync/condvar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ impl Condvar {
484484
Some(timeout) => timeout,
485485
None => return Ok((guard, WaitTimeoutResult(true))),
486486
}
487-
guard = self.wait_timeout(guard, dur)?.0;
487+
guard = self.wait_timeout(guard, timeout)?.0;
488488
}
489489
}
490490

0 commit comments

Comments
 (0)