From 4b14f9ff37b4c0614a8f039aa393aa3c6bb86c97 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 10 Aug 2016 00:21:52 +0100 Subject: [PATCH] Always wait for at least some time, as it's ambiguous as to whether a 0.0s timerequest is valid. --- frontends/amiga/schedule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontends/amiga/schedule.c b/frontends/amiga/schedule.c index 3cbad0d17..7698129bc 100644 --- a/frontends/amiga/schedule.c +++ b/frontends/amiga/schedule.c @@ -301,6 +301,8 @@ nserror ami_schedule(int t, void (*callback)(void *p), void *p) { struct nscallback *nscb; + if(t == 0) t = 1; + LOG("Scheduling callback %p with arg %p at time %d", callback, p, t); if(schedule_list == NULL) return NSERROR_INIT_FAILED;