Skip to content

Commit

Permalink
Fix 3239. Fixed replace mistake in lib/thread_mosq.c
Browse files Browse the repository at this point in the history
Signed-off-by: mzymon <[email protected]>
  • Loading branch information
mzymon authored and ralight committed Oct 30, 2024
1 parent a111d92 commit e99a97b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/thread_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e99a97b

Please sign in to comment.