mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
setTimeout: Kill timer when it timed out, fixes random crashes
This commit is contained in:
parent
c7863324e0
commit
847feea09e
@ -308,6 +308,9 @@ ecmascript_timeout_handler(void *i)
|
||||
{
|
||||
struct ecmascript_interpreter *interpreter = i;
|
||||
|
||||
assert(interpreter->vs->doc_view->document);
|
||||
kill_timer(&interpreter->vs->doc_view->document->timeout);
|
||||
|
||||
ecmascript_eval(interpreter, &interpreter->code, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user