Skip to content
Snippets Groups Projects
Commit 1f7d02ca authored by Éloïs's avatar Éloïs
Browse files

[fix] core: revert regression introduce by commit 1fc6292c

parent 7c58d67e
No related branches found
No related tags found
1 merge request!250[fix] core: revert regression introduce by commit 1fc6292c
......@@ -215,8 +215,8 @@ fn start_broadcasting_thread(
RecvTimeoutError::Disconnected => fatal_error!("router thread disconnnected !"),
},
}
if let Some(expected_regs_count) = expected_registrations_count {
if registrations_count < expected_regs_count
if (expected_registrations_count.is_none()
|| registrations_count < unwrap::unwrap!(expected_registrations_count))
&& SystemTime::now()
.duration_since(start_time)
.expect("Duration error !")
......@@ -226,13 +226,7 @@ fn start_broadcasting_thread(
fatal_error!(
"{} modules have registered, but expected {} !",
registrations_count,
expected_regs_count
);
}
} else {
fatal_error!(
"{} modules have registered, but none expected !",
registrations_count
expected_registrations_count.unwrap_or(0)
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment