mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(cli): fix a race condition where the program will hang
This commit is contained in:
parent
773b77922e
commit
58d2d1e30d
1 changed files with 5 additions and 5 deletions
|
|
@ -54,13 +54,13 @@ impl LintService {
|
|||
if !diagnostics.1.is_empty() {
|
||||
tx_error.send(Some(diagnostics)).unwrap();
|
||||
}
|
||||
|
||||
if done && processing.is_empty() {
|
||||
tx_error.send(None).unwrap();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if done && processing.is_empty() {
|
||||
tx_error.send(None).unwrap();
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue