Skip to content

Commit

Permalink
修改进程伴随server启动时协程环境错误
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Mar 19, 2020
1 parent 29b27a9 commit 9f6a0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Core/Process/Pool/DependentPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function start() {
$swooleProcess = new Process(function (Process $worker) use ($i) {
//这里不能通过event触发
(new ProcessStartListener())->run($this->serverType, $worker, $i, $this->processFactory, $this->mqKey);
}, false, SOCK_DGRAM);
}, false, SOCK_DGRAM, true);

App::$server->getServer()->addProcess($swooleProcess);
}
Expand Down

0 comments on commit 9f6a0c0

Please sign in to comment.