diff options
Diffstat (limited to 'content/handlers/javascript/duktape/Window.bnd')
-rw-r--r-- | content/handlers/javascript/duktape/Window.bnd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/handlers/javascript/duktape/Window.bnd b/content/handlers/javascript/duktape/Window.bnd index 865d07421..99615c207 100644 --- a/content/handlers/javascript/duktape/Window.bnd +++ b/content/handlers/javascript/duktape/Window.bnd @@ -167,10 +167,15 @@ static size_t window_alloc_new_callback(duk_context *ctx, window_private_t *wind static void window_remove_callback_by_handle(duk_context *ctx, window_private_t *window, size_t handle) { + int res; + RING_ITERATE_START(window_schedule_t, window->schedule_ring, sched) { if (sched->handle == handle) { NSLOG(dukky, DEEPDEBUG, "Cancelled callback %"PRIsizet, sched->handle); - guit->misc->schedule(-1, window_schedule_callback, sched); + res = guit->misc->schedule(-1, + window_schedule_callback, + sched); + assert(res == NSERROR_OK); RING_REMOVE(window->schedule_ring, sched); window_remove_callback_bits(ctx, sched->handle); free(sched); |