Skip to content

Commit

Permalink
fix process core-dump bug
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteCcinn committed Mar 27, 2018
1 parent eb27b27 commit 77e772d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bootstrap/Listeners/BeforeStartListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Swoft\Process\Bootstrap\Listeners;

use Swoft\App;
use Swoft\Bean\Annotation\BeforeStart;
use Swoft\Bootstrap\Listeners\Interfaces\BeforeStartInterface;
use Swoft\Bootstrap\Server\AbstractServer;
Expand Down Expand Up @@ -36,7 +37,9 @@ private function addProcess(AbstractServer &$server)
$name = $processInfo['name'];
$boot = $processInfo['boot'];

if (!$boot) {
$processObject = App::getBean($name);

if (!$processObject->check() || !$boot) {
continue;
}

Expand Down

0 comments on commit 77e772d

Please sign in to comment.