修改启动协程bug

This commit is contained in:
boyce
2019-02-12 13:28:22 +08:00
parent ba4b084085
commit df4994544a

View File

@@ -61,7 +61,7 @@ func (slf *CServiceManager) Init() bool {
func (slf *CServiceManager) Start(exit chan bool, pwaitGroup *sync.WaitGroup) bool {
for _, s := range slf.localserviceMap {
(s.(IModule)).RunModule(s.(IModule), exit, pwaitGroup)
go (s.(IModule)).RunModule(s.(IModule), exit, pwaitGroup)
}
pwaitGroup.Add(1)