fix: 修复释放定时器后可能造成空指针的问题
This commit is contained in:
parent
ebfdd7c281
commit
9f27102d3a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue