From 46ef7ca8d811410e15cb1a575bf469583bff280e Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 31 Jul 2019 15:16:38 +0200 Subject: [PATCH] add data validity to scheduler --- wvnc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wvnc.c b/wvnc.c index 4a22cd8..5408db3 100644 --- a/wvnc.c +++ b/wvnc.c @@ -660,7 +660,7 @@ void* handle(void *data) else { pthread_detach(th); - task = antd_create_task(NULL, NULL, NULL); + task = antd_create_task(NULL, NULL, NULL, time(NULL)); task->priority++; return task; } @@ -671,7 +671,7 @@ void* handle(void *data) __t(cl, "Welcome to WVNC, please use a websocket connection"); } - task = antd_create_task(NULL, (void *)rq, NULL); + task = antd_create_task(NULL, (void *)rq, NULL, rq->client->last_io); task->priority++; return task; //LOG("%s\n", "EXIT Streaming..");