summaryrefslogtreecommitdiff
path: root/atari/schedule.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-12-07 23:05:50 +0000
committerOle Loots <ole@monochrom.net>2011-12-07 23:05:50 +0000
commit5c2406c30bdd3b47cb08da0e509b30a7544f0908 (patch)
treec356f644bca3e967d67b136f624fdf7fdc05777f /atari/schedule.c
parent97dce15b9e20d21e03d1240ca6178d573d94a88e (diff)
downloadnetsurf-5c2406c30bdd3b47cb08da0e509b30a7544f0908.tar.gz
netsurf-5c2406c30bdd3b47cb08da0e509b30a7544f0908.tar.bz2
force list of scheduled callbacks to be unique.
svn path=/trunk/netsurf/; revision=13257
Diffstat (limited to 'atari/schedule.c')
-rwxr-xr-xatari/schedule.c7
1 files changed, 7 insertions, 0 deletions
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;