Merge branch 'master' into parse_ihdr_header
This commit is contained in:
commit
35edda7fef
1 changed files with 3 additions and 1 deletions
|
|
@ -785,12 +785,14 @@ impl Deadline {
|
|||
if let Some(imp) = &self.imp {
|
||||
let elapsed = imp.start.elapsed();
|
||||
if elapsed > imp.timeout {
|
||||
if imp.print_message.compare_exchange(
|
||||
if match imp.print_message.compare_exchange(
|
||||
true,
|
||||
false,
|
||||
Ordering::SeqCst,
|
||||
Ordering::SeqCst,
|
||||
) {
|
||||
Ok(x) | Err(x) => x,
|
||||
} {
|
||||
warn!("Timed out after {} second(s)", elapsed.as_secs());
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue