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

threadpool: lack of task when getting status should be taken as FINISHED

This commit is contained in:
Andy Green 2020-03-21 13:12:25 +00:00
parent 54029c4896
commit 6d5ebd237c

View file

@ -1026,8 +1026,10 @@ lws_threadpool_task_status_wsi(struct lws *wsi,
struct lws_threadpool *tp;
*task = wsi->tp_task;
if (!*task)
return -1;
if (!*task) {
lwsl_notice("%s: wsi has NULL tp_task, ~=FINISHED\n", __func__);
return LWS_TP_STATUS_FINISHED;
}
tp = (*task)->tp;
*user = (*task)->args.user;