Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kcloze committed Jan 9, 2018
1 parent ea8ecc8 commit b629376
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,13 @@ public function registTimer()
\Swoole\Timer::tick($this->queueTickTimer, function ($timerId) {
$topics = $this->topics;
$this->status =$this->getMasterData('status');
if (empty($this->workers) && Process::STATUS_WAIT == $this->status) {
$this->exitMaster();
}
$this->queue = Queue::getQueue($this->config['job']['queue'], $this->logger);
if (empty($this->queue)) {
$this->logger->log('queue connection is lost', 'info', $this->logSaveFileWorker);

return;
}
$this->queue->setTopics($topics);
Expand Down

0 comments on commit b629376

Please sign in to comment.