diff options
| author | yangwei <[email protected]> | 2024-08-19 16:03:32 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-08-19 18:27:28 +0800 |
| commit | 824844b9fd593e6bf518ef934f78f50b44deb5a5 (patch) | |
| tree | dd3e3181465a49c85a4574941983b82bcc96dd47 | |
| parent | b62b58e6759341f789eb5265e307d288fa2a0446 (diff) | |
🐞 fix(stellar_run): set need_exit as 0 before thread run
| -rw-r--r-- | src/core/stellar_core.cpp | 2 |
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"); |
