Skip to content

Commit e07642f

Browse files
committed
Fix issue #2.
1 parent 0948c9f commit e07642f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub(crate) fn monitor(
7979
Err(Errno::EINTR) => {
8080
// Retry.
8181
if let Some(t) = timeout {
82-
timeout = Some(t - now.elapsed());
82+
timeout = Some(t.saturating_sub(now.elapsed()));
8383
}
8484
continue 'main_loop;
8585
}

0 commit comments

Comments
 (0)