|
@@ -25,8 +25,8 @@ func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
|
|
|
|
|
|
if len(roomList) == 0 {
|
|
if len(roomList) == 0 {
|
|
// Create new room if none available
|
|
// Create new room if none available
|
|
- room_info := CreateRoom(matchInfo, userId)
|
|
|
|
log.Error("没找到房间匹配一个!")
|
|
log.Error("没找到房间匹配一个!")
|
|
|
|
+ room_info := CreateRoom(matchInfo, userId)
|
|
if room_info == nil {
|
|
if room_info == nil {
|
|
sendMatchErrorMsg(user_agent, 101, "not find player")
|
|
sendMatchErrorMsg(user_agent, 101, "not find player")
|
|
}
|
|
}
|