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:
parent
54029c4896
commit
6d5ebd237c
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue