mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-27 09:14:44 +08:00
优化定时器
This commit is contained in:
@@ -128,11 +128,11 @@ func (slf *Module) ReleaseModule(moduleId int64){
|
||||
pModule.self.OnRelease()
|
||||
log.Debug("Release module %s.",slf.GetModuleName())
|
||||
for pTimer,_ := range pModule.mapActiveTimer {
|
||||
pTimer.Stop()
|
||||
pTimer.Close()
|
||||
}
|
||||
|
||||
for pCron,_ := range pModule.mapActiveCron {
|
||||
pCron.Stop()
|
||||
pCron.Close()
|
||||
}
|
||||
|
||||
delete(slf.child,moduleId)
|
||||
|
||||
Reference in New Issue
Block a user