Просмотр исходного кода

Wesmiler OTC 提交更新 0729

APPLE 3 лет назад
Родитель
Сommit
5a40e9bc45
1 измененных файлов с 6 добавлено и 2 удалено
  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();
+        }
+
+
     }
 }