From b83beb5a16c22c937d4c03332aeb37e6bc3f1626 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sat, 27 Aug 2022 22:34:59 +0200 Subject: [PATCH] update --- lua-api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua-api.c b/lua-api.c index 48f5851..b64ff62 100644 --- a/lua-api.c +++ b/lua-api.c @@ -227,8 +227,8 @@ static void *process(void *data) case 0: // time out task = antd_create_task(process, (void *)rq, NULL, time(NULL)); - //antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE); - //antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE); + antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE); + antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_READABLE); return task; // we have data default: @@ -277,7 +277,7 @@ static void *process(void *data) } task = antd_create_task(process, (void *)rq, NULL, time(NULL)); antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE); - antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE); + antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_READABLE); return task; } }