郑晓宇 6 years ago
parent
commit
3f0f016267
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Home/Controllers/GameController.php

+ 1 - 1
app/Home/Controllers/GameController.php

@@ -37,7 +37,7 @@ class GameController extends Controller
         $Lock_file = "{$room_id}_lock_file.txt";
         $Lock_file = "{$room_id}_lock_file.txt";
         $i = 1;
         $i = 1;
         while ($i < 30) {
         while ($i < 30) {
-            $fp = fopen($Lock_file, "r");
+            $fp = fopen($Lock_file, "a+");
             if($fp===false){
             if($fp===false){
                 sleep(1);
                 sleep(1);
             }else{
             }else{