diff options
| author | foora <287346653@qq.com> | 2018-06-09 17:08:23 +0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-09 11:08:23 +0200 |
| commit | 072fcd6b0ef95e75281b3591bad38aaf4feb080b (patch) | |
| tree | 040ade69eede0aba3ddc02d150277cc4d2c04d2d | |
| parent | c977cba123af280bde7bfaffc8a64756cc75ca30 (diff) | |
delete timer in the Map(timers) when call clearTimer (#215)
| -rw-r--r-- | timers.ts | 1 |
1 files changed, 1 insertions, 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 |
