aboutsummaryrefslogtreecommitdiff
path: root/src/core/reap.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-29 03:33:50 -0500
committerGarrett D'Amore <garrett@damore.org>2024-12-07 12:39:26 -0800
commit2c98a72d5135a09bcb860eed06b3029d27b7c797 (patch)
treec1d595f1d13ed887f5399aee727d172c90eebf6c /src/core/reap.c
parent784bfd66e1278890bc2ae3ab3779796c2174eda5 (diff)
downloadnng-2c98a72d5135a09bcb860eed06b3029d27b7c797.tar.gz
nng-2c98a72d5135a09bcb860eed06b3029d27b7c797.tar.bz2
nng-2c98a72d5135a09bcb860eed06b3029d27b7c797.zip
reap: thread exits prematurely after reinitialization
Diffstat (limited to 'src/core/reap.c')
-rw-r--r--src/core/reap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/reap.c b/src/core/reap.c
index f996695d..3044a041 100644
--- a/src/core/reap.c
+++ b/src/core/reap.c
@@ -108,6 +108,7 @@ nni_reap_sys_init(void)
{
int rv;
+ reap_exit = false;
// If this fails, we don't fail init, instead we will try to
// start up at reap time.
if ((rv = nni_thr_init(&reap_thr, reap_worker, NULL)) != 0) {