解除Module对象引用关系

This commit is contained in:
boyce
2019-08-30 19:56:10 +08:00
parent 81b008130c
commit 89936a887d

View File

@@ -152,6 +152,9 @@ func (slf *BaseModule) ReleaseModule(moduleId uint32) bool {
slf.LockTree(module.getBaseModule())
slf.deleteModule(module.getBaseModule())
delete(slf.mapModule, moduleId)
//fmt.Printf("++Release %T -- %+v\n", slf.GetSelf(), slf.mapModule)
slf.moduleLocker.Unlock()
return true
}