xxxrrrdddd 3 years ago
parent
commit
c3cf0749aa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      work

+ 3 - 0
work

@@ -25,4 +25,7 @@ $work->onWorkerStart=function ($conn){
         sleep(3);
     }
 };
+$work->onWorkerStop=function (\Workerman\Worker $work){
+    var_dump('close');
+};
 $work->run();