1
Fork 0

1. fix jobserver GLOBAL_CLIENT_CHECKED uninitialized before use

2. jobserver::initialize_checked should call before build_session, still should use EarlyErrorHandler, so revert stderr change in #118635
This commit is contained in:
oksbsb 2023-12-07 22:39:07 +08:00
parent 370c91100c
commit dabedb711f
6 changed files with 19 additions and 16 deletions

View file

@ -52,7 +52,7 @@ fn default_client() -> Client {
static GLOBAL_CLIENT_CHECKED: OnceLock<Client> = OnceLock::new();
pub fn check(report_warning: impl FnOnce(&'static str)) {
pub fn initialize_checked(report_warning: impl FnOnce(&'static str)) {
let client_checked = match &*GLOBAL_CLIENT {
Ok(client) => client.clone(),
Err(e) => {