From 5c2406c30bdd3b47cb08da0e509b30a7544f0908 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Wed, 7 Dec 2011 23:05:50 +0000 Subject: force list of scheduled callbacks to be unique. svn path=/trunk/netsurf/; revision=13257 --- atari/schedule.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'atari/schedule.c') diff --git a/atari/schedule.c b/atari/schedule.c index c16572ea8..579048e3f 100755 --- a/atari/schedule.c +++ b/atari/schedule.c @@ -58,6 +58,13 @@ struct nscallback void schedule( int cs_ival, void (*callback)(void *p), void *p) { struct nscallback *nscb; + + /* + remove any callback of this kind, + other frontend do this, too. framebuffer frontend doesn't do it. + */ + schedule_remove(callback, p); + nscb = calloc(1, sizeof(struct nscallback)); nscb->timeout = CS_NOW() + cs_ival; -- cgit v1.2.3