郑晓宇 лет назад: 6
Родитель
Сommit
665cd7e9c2
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/Console/Commands/robot.php

+ 1 - 2
app/Console/Commands/robot.php

@@ -150,7 +150,6 @@ class robot extends Command
                 //结算
                 if($json_data->type == 'round_end'){
                     echo "回合结束,已结算";
-                    exit;
                 }
 
                 //结算
@@ -168,7 +167,7 @@ class robot extends Command
                     ungroup($room_id);
                     Gateway::unbindUid($client_id, $user->user_id);
                     closeClient($client_id);
-                    exit;
+                    Worker::stopAll();
                 }
 
             };