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( ...@@ -215,8 +215,8 @@ fn start_broadcasting_thread(
RecvTimeoutError::Disconnected => fatal_error!("router thread disconnnected !"), RecvTimeoutError::Disconnected => fatal_error!("router thread disconnnected !"),
}, },
} }
if let Some(expected_regs_count) = expected_registrations_count { if (expected_registrations_count.is_none()
if registrations_count < expected_regs_count || registrations_count < unwrap::unwrap!(expected_registrations_count))
&& SystemTime::now() && SystemTime::now()
.duration_since(start_time) .duration_since(start_time)
.expect("Duration error !") .expect("Duration error !")
...@@ -226,13 +226,7 @@ fn start_broadcasting_thread( ...@@ -226,13 +226,7 @@ fn start_broadcasting_thread(
fatal_error!( fatal_error!(
"{} modules have registered, but expected {} !", "{} modules have registered, but expected {} !",
registrations_count, registrations_count,
expected_regs_count expected_registrations_count.unwrap_or(0)
);
}
} else {
fatal_error!(
"{} modules have registered, but none expected !",
registrations_count
); );
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment