mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
delete timer in the Map(timers) when call clearTimer (#215)
This commit is contained in:
parent
c977cba123
commit
072fcd6b0e
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ export function setInterval(
|
|||
}
|
||||
|
||||
export function clearTimer(id: number) {
|
||||
timers.delete(id);
|
||||
pubInternal("timers", {
|
||||
command: pb.Msg.Command.TIMER_CLEAR,
|
||||
timerClearId: id
|
||||
|
|
Loading…
Reference in a new issue