commit c3b2a8b2a2717084cffdfa05c1c4e2c853617ea3
parent 868b0a71a2d0f63a3465186db0bf839b84bf28f7
Author: Joris Vink <joris@coders.se>
Date: Fri, 20 Sep 2019 09:37:02 +0200
fix NOHTTP builds
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/worker.c b/src/worker.c
@@ -429,8 +429,10 @@ kore_worker_entry(struct kore_worker *kw)
netwait = kore_timer_next_run(now);
+#if !defined(KORE_NO_HTTP)
if (netwait == KORE_WAIT_INFINITE && http_request_count > 0)
netwait = 100;
+#endif
kore_platform_event_wait(netwait);
now = kore_time_ms();