Bladeren bron

Wesmiler OTC 提交更新 0729

APPLE 3 jaren geleden
bovenliggende
commit
5a40e9bc45
1 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 6 2
      app/Console/Commands/Socket.php

+ 6 - 2
app/Console/Commands/Socket.php

@@ -16,7 +16,7 @@ class Socket extends Command
      *
      * @var string
      */
-    protected $signature = 'swoole:socket {op?}';
+    protected $signature = 'swoole:socketIm {op?}';
 
     /**
      * The console command description.
@@ -204,6 +204,10 @@ class Socket extends Command
      */
     public function stop()
     {
-        $this->ws->close();
+        if($this->ws){
+            $this->ws->close();
+        }
+
+
     }
 }