diff --git a/services/comp_gateroute.go b/services/comp_gateroute.go index 4d92f5495..55f43b18f 100644 --- a/services/comp_gateroute.go +++ b/services/comp_gateroute.go @@ -59,6 +59,7 @@ func (this *SCompGateRoute) Init(service core.IService, comp core.IServiceComp, err = this.ServiceCompBase.Init(service, comp, options) this.service = service.(base.IRPCXService) this.msghandles = make(map[string]*msghandle) + this.sessions = make(map[string]comm.IUserSession) return err } //