chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5469da
)
js test: call test_update_hook on api queue empty
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 21 Jul 2021 20:06:48 +0000
(21:06 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 21 Jul 2021 20:14:40 +0000
(21:14 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index 65c7511bdbf2e36c81d4e252800797fbb04dc1cd..4c2587755a96c6f05fb1890edc992e5a1583e769 100644
(file)
--- 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;