fixed race condition in mixnet listener creation notification

This commit is contained in:
Jędrzej Stuczyński
2026-05-29 14:07:17 +01:00
parent 761f970912
commit e1917ff2a3
@@ -144,7 +144,7 @@ impl MixnetListener {
/// Returns `self` so that the caller can inspect fields such as
/// [`last_noise_handshake_duration`](Self::last_noise_handshake_duration) after the run.
pub(crate) async fn run(mut self, on_start: Arc<Notify>) -> Self {
on_start.notify_waiters();
on_start.notify_one();
// only handle a single connection at once
// (we don't need more than that)
loop {