summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-08-19 16:03:32 +0800
committeryangwei <[email protected]>2024-08-19 18:27:28 +0800
commit824844b9fd593e6bf518ef934f78f50b44deb5a5 (patch)
treedd3e3181465a49c85a4574941983b82bcc96dd47
parentb62b58e6759341f789eb5265e307d288fa2a0446 (diff)
🐞 fix(stellar_run): set need_exit as 0 before thread run
-rw-r--r--src/core/stellar_core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/stellar_core.cpp b/src/core/stellar_core.cpp
index 80f437c..fcd2945 100644
--- a/src/core/stellar_core.cpp
+++ b/src/core/stellar_core.cpp
@@ -498,6 +498,8 @@ int stellar_run(int argc __attribute__((unused)), char **argv __attribute__((unu
goto error_out;
}
+ ATOMIC_SET(&need_exit, 0);
+
if (stellar_thread_run(runtime, config) != 0)
{
STELLAR_LOG_ERROR("unable to create worker thread");