郑晓宇 пре 6 година
родитељ
комит
3db3b9b999
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Console/Commands/gamematch.php

+ 1 - 1
app/Console/Commands/gamematch.php

@@ -54,7 +54,7 @@ class gamematch extends Command
                     $message = [
                         "type" => 'gotomatch',
                     ];
-                    if(Gateway::isOnline($robot)){
+                    if($robot && Gateway::isOnline($robot)){
                         Gateway::sendToClient($robot, $message);
                         echo "启动机器人: {$robot}\n";
                     }