From 4dd1189312602baf8391ae7c56d8d219ae870807 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 21 Jul 2021 21:06:48 +0100 Subject: [PATCH] js test: call test_update_hook on api queue empty Signed-off-by: Ian Jackson --- templates/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index 65c7511b..4c258775 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -224,7 +224,7 @@ function api_delay(meth: string, data: Object) { } function api_check() { if (api_posting) { return; } - if (!api_queue.length) { return; } + if (!api_queue.length) { test_update_hook(); return; } do { var [meth, data] = api_queue.shift()!; if (meth != 'm') break; -- 2.30.2