郑晓宇 6 年之前
父节点
当前提交
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();
                 }
 
             };