上传战斗对接

This commit is contained in:
liwei1dao 2022-12-13 19:26:34 +08:00
parent 024c6d2076
commit bb449d6cb9

View File

@ -40,9 +40,11 @@ func (this *clientComp) Init(service core.IService, module core.IModule, comp co
func (this *clientComp) Start() (err error) { func (this *clientComp) Start() (err error) {
err = this.ModuleCompBase.Start() err = this.ModuleCompBase.Start()
for i, v := range this.options.BattleServerAddr { if this.options.OpenCheck {
if this.clinets[i], err = newClient(v, i, this, this.options.Log); err != nil { for i, v := range this.options.BattleServerAddr {
return if this.clinets[i], err = newClient(v, i, this, this.options.Log); err != nil {
return
}
} }
} }
return return