diff --git a/modules/client/sync/presence.cc b/modules/client/sync/presence.cc index 45fa919bd..84384d293 100644 --- a/modules/client/sync/presence.cc +++ b/modules/client/sync/presence.cc @@ -153,5 +153,6 @@ ircd::m::sync::presence_polylog(data &data) parallel(); }); + parallel.wait_done(); return ret; } diff --git a/modules/client/sync/rooms/state.cc b/modules/client/sync/rooms/state.cc index 47eda8e6c..2bfcc5e71 100644 --- a/modules/client/sync/rooms/state.cc +++ b/modules/client/sync/rooms/state.cc @@ -135,5 +135,6 @@ ircd::m::sync::room_state_polylog_events(data &data) parallel(event_idx); }); + parallel.wait_done(); return ret; }