mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
解除Module对象引用关系
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user