diff --git a/core/consensus/sumeragi.cpp b/core/consensus/sumeragi.cpp index 0dc88491c7..7117dcbafe 100644 --- a/core/consensus/sumeragi.cpp +++ b/core/consensus/sumeragi.cpp @@ -413,7 +413,7 @@ namespace sumeragi { std::thread([action, sleepMillisecs]() { std::this_thread::sleep_for(std::chrono::milliseconds(sleepMillisecs)); action(); - }); + }).join(); } /**