|
|
@@ -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();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|