1
0
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:
Petr Baudis 2006-11-03 20:18:31 +01:00 committed by Petr Baudis
parent c7863324e0
commit 847feea09e

View File

@ -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);
}