|
@@ -53,7 +53,7 @@ class gamematch extends Command
|
|
|
while (1) {
|
|
|
$user_id = Redis::lpop('match_list');
|
|
|
if(!$user_id){
|
|
|
- if($match_times > 5){
|
|
|
+ if($match_times > 2){
|
|
|
$match_times = 0;
|
|
|
//获取是否有房间未满人
|
|
|
$room_id = $this->get_free_room();
|
|
@@ -81,7 +81,7 @@ class gamematch extends Command
|
|
|
$message['type'] = 'gotomatch';
|
|
|
Gateway::sendToUid($user->user_id, json_encode($message));
|
|
|
}
|
|
|
- sleep(3);
|
|
|
+ sleep(2);
|
|
|
$match_times++;
|
|
|
continue;
|
|
|
}
|