1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-05-08 08:40:13 +08:00

Fix 3239. Fixed replace mistake in lib/thread_mosq.c

Signed-off-by: mzymon <mzymon@proton.me>
This commit is contained in:
mzymon 2024-10-17 17:40:00 +02:00 committed by Roger Light
parent a111d92970
commit e99a97b294

View File

@ -83,8 +83,7 @@ int mosquitto_loop_stop(struct mosquitto *mosq, bool force)
#ifdef HAVE_PTHREAD_CANCEL
if(force){
COMPAT_pthread_cancel()
(mosq->thread_id);
COMPAT_pthread_cancel(mosq->thread_id);
}
#endif
COMPAT_pthread_join(mosq->thread_id, NULL);