From 970248430612170d9446d2c06f69af63e31d4861 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 17 May 2005 23:25:32 +0000 Subject: [project @ 2005-05-17 23:25:32 by rjw] Don't allow things to be scheduled twice. svn path=/import/netsurf/; revision=1725 --- riscos/schedule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'riscos/schedule.c') diff --git a/riscos/schedule.c b/riscos/schedule.c index c055c219f..70d18869b 100644 --- a/riscos/schedule.c +++ b/riscos/schedule.c @@ -55,6 +55,8 @@ void schedule(int t, void (*callback)(void *p), void *p) struct sched_entry *entry; struct sched_entry *queue; os_t time; + + schedule_remove(callback, p); time = os_read_monotonic_time() + t; -- cgit v1.2.3