From 072fcd6b0ef95e75281b3591bad38aaf4feb080b Mon Sep 17 00:00:00 2001 From: foora <287346653@qq.com> Date: Sat, 9 Jun 2018 17:08:23 +0800 Subject: [PATCH] delete timer in the Map(timers) when call clearTimer (#215) --- timers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/timers.ts b/timers.ts index cddb859d9a..ed65128cda 100644 --- a/timers.ts +++ b/timers.ts @@ -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