fix race condition on 43 msg creation/closure. Speed up game object insert to db (from 10-12s to 1-2s)
This commit is contained in:
@@ -49,8 +49,7 @@ func (msg WsSessionMsg) OnActiveWorld(tr *transport.FoundryTransport) error {
|
||||
func (msg WsSessionMsg) HandleLoggedInUser(tr *transport.FoundryTransport) error {
|
||||
if tr.LoggedInChan == nil {
|
||||
tr.Logger.Info("World had been started before application was started. Run insertion of world data")
|
||||
go tr.InsertGameToDB()
|
||||
return nil
|
||||
return tr.InsertGameToDB()
|
||||
}
|
||||
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user