summaryrefslogtreecommitdiff
path: root/js/timers.ts
diff options
context:
space:
mode:
authorJonathon Orsi <jonathon.orsi@gmail.com>2019-04-07 20:51:43 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-04-07 20:51:43 -0400
commit3452a10840ef47bb5546969ebe776289c7b095f1 (patch)
tree165439d870c7fdc2b914d9e008162ea7c17b4cb2 /js/timers.ts
parent86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff)
use flatbuffer create functions to add fields (#2046)
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);