commit cb62a6a8a832e21e70fee677cb5d536d6ca7ccb7
parent 950977f2be45dbba20c0261c6c4dcc821a4c7b9b
Author: Joris Vink <joris@coders.se>
Date: Sun, 4 Dec 2016 12:16:27 +0100
Clamp netwait to maximum 100ms.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/worker.c b/src/worker.c
@@ -360,6 +360,8 @@ kore_worker_entry(struct kore_worker *kw)
now = kore_time_ms();
netwait = kore_timer_run(now);
+ if (netwait > 100)
+ netwait = 100;
if (now > next_lock) {
if (kore_worker_acceptlock_obtain()) {