summaryrefslogtreecommitdiff
path: root/riscos/schedule.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/schedule.c')
-rw-r--r--riscos/schedule.c2
1 files changed, 2 insertions, 0 deletions
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;