Skip to content

Commit 58d2d1e

Browse files
committed
fix(cli): fix a race condition where the program will hang
1 parent 773b779 commit 58d2d1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/oxc_linter/src/service.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ impl LintService {
5454
if !diagnostics.1.is_empty() {
5555
tx_error.send(Some(diagnostics)).unwrap();
5656
}
57-
58-
if done && processing.is_empty() {
59-
tx_error.send(None).unwrap();
60-
break;
61-
}
6257
}
6358
}
59+
60+
if done && processing.is_empty() {
61+
tx_error.send(None).unwrap();
62+
break;
63+
}
6464
}
6565
});
6666
}

0 commit comments

Comments
 (0)