fix: 修复释放定时器后可能造成空指针的问题

This commit is contained in:
kercylan98 2023-07-06 09:09:07 +08:00
parent ebfdd7c281
commit 9f27102d3a
1 changed files with 0 additions and 1 deletions

View File

@ -35,7 +35,6 @@ func (slf *Ticker) Release() {
scheduler.close()
delete(slf.timers, name)
}
slf.handle = nil
slf.lock.Unlock()
slf.timer.tickers = append(slf.timer.tickers, slf)