summaryrefslogtreecommitdiff
path: root/js/timers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/timers.ts')
-rw-r--r--js/timers.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/timers.ts b/js/timers.ts
index e372f88c2..9a595973c 100644
--- a/js/timers.ts
+++ b/js/timers.ts
@@ -39,8 +39,7 @@ function getTime(): number {
function clearGlobalTimeout(): void {
const builder = flatbuffers.createBuilder();
- msg.GlobalTimerStop.startGlobalTimerStop(builder);
- const inner = msg.GlobalTimerStop.endGlobalTimerStop(builder);
+ const inner = msg.GlobalTimerStop.createGlobalTimerStop(builder);
globalTimeoutDue = null;
let res = sendSync(builder, msg.Any.GlobalTimerStop, inner);
assert(res == null);