未验证 提交 3fe6530f 编写于 作者: L Li Hao 提交者: Bert Belder

timers: fix clearTimer bug

上级 4f3250bc
......@@ -103,7 +103,7 @@ function unschedule(timer: Timer) {
// Multiple timers that are due at the same point in time.
// Remove this timer from the list.
const index = list.indexOf(timer);
assert(index > 0);
assert(index > -1);
list.splice(index, 1);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册