summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-08-09 23:21:52 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2016-08-09 23:21:52 (GMT)
commit4b14f9ff37b4c0614a8f039aa393aa3c6bb86c97 (patch)
tree851832b90dd7648e902bfc3b320f81277d6ffcac
parentcd488602073a1775c41a60d582854feec63cb676 (diff)
downloadnetsurf-4b14f9ff37b4c0614a8f039aa393aa3c6bb86c97.tar.gz
netsurf-4b14f9ff37b4c0614a8f039aa393aa3c6bb86c97.tar.bz2
Always wait for at least some time, as it's ambiguous as to whether a 0.0s timerequest is valid.
-rw-r--r--frontends/amiga/schedule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/amiga/schedule.c b/frontends/amiga/schedule.c
index 3cbad0d..7698129 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;