1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

pthread: fix destroy call

https://github.com/warmcat/libwebsockets/issues/1172
This commit is contained in:
Andy Green 2018-02-06 08:54:45 +08:00
parent 1511ce225f
commit 4c299ad4a8

View file

@ -1621,7 +1621,7 @@ lws_context_destroy2(struct lws_context *context)
lws_check_deferred_free(context, 1);
#if LWS_MAX_SMP > 1
pthread_mutex_destroy(&context->lock, NULL);
pthread_mutex_destroy(&context->lock);
#endif
lws_free(context);