修改动态加载module出现锁被重置

This commit is contained in:
boyce
2019-04-04 20:23:39 +08:00
parent 87bfdaeaf0
commit b0cdc46920
2 changed files with 5 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ package service
import (
"fmt"
"sync"
"reflect"
"strings"
@@ -80,5 +81,7 @@ func (slf *BaseService) Init(iservice IService) error {
}
slf.serviceid = InstanceServiceMgr().GenServiceID()
slf.BaseModule.rwModuleLocker = &sync.Mutex{}
return nil
}