summaryrefslogtreecommitdiff
path: root/src/lib/thread/compat_pthreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/thread/compat_pthreads.c')
-rw-r--r--src/lib/thread/compat_pthreads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/thread/compat_pthreads.c b/src/lib/thread/compat_pthreads.c
index 05efe9cfd0..6f7ecd17da 100644
--- a/src/lib/thread/compat_pthreads.c
+++ b/src/lib/thread/compat_pthreads.c
@@ -265,6 +265,6 @@ tor_threads_init(void)
pthread_attr_setdetachstate(&attr_detached, PTHREAD_CREATE_DETACHED);
tor_assert(ret2 == 0);
threads_initialized = 1;
- set_main_thread();
}
+ set_main_thread();
}