diff options
author | Ole Loots <ole@monochrom.net> | 2011-12-07 23:05:50 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-12-07 23:05:50 +0000 |
commit | 5c2406c30bdd3b47cb08da0e509b30a7544f0908 (patch) | |
tree | c356f644bca3e967d67b136f624fdf7fdc05777f | |
parent | 97dce15b9e20d21e03d1240ca6178d573d94a88e (diff) | |
download | netsurf-5c2406c30bdd3b47cb08da0e509b30a7544f0908.tar.gz netsurf-5c2406c30bdd3b47cb08da0e509b30a7544f0908.tar.bz2 |
force list of scheduled callbacks to be unique.
svn path=/trunk/netsurf/; revision=13257
-rwxr-xr-x | atari/schedule.c | 7 |
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; |