From e93e460f2293a6571350cf89c61287cec8edf29f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 3 Mar 2019 16:23:10 -0800 Subject: [PATCH] modules/client/sync: Must wait for parallel completion before copying ret. --- modules/client/sync/presence.cc | 1 + modules/client/sync/rooms/state.cc | 1 + 2 files changed, 2 insertions(+) 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; }