From 4dd743c732efbdf51c56cfbf1f562e3939ab723e Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 26 May 2021 00:15:33 +0200 Subject: [PATCH] Better create own connections --- src/Command/DaemonCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Command/DaemonCommand.php b/src/Command/DaemonCommand.php index 5f6f4c8..d5b1ad1 100644 --- a/src/Command/DaemonCommand.php +++ b/src/Command/DaemonCommand.php @@ -55,6 +55,9 @@ class DaemonCommand extends Command $jobRepo->RunJob($job); $jobRepo->setJobRunning($job, false); } elseif ($pid == 0) { + $dbcon = $this->kernel->getDbCon(); + $dbcon->close(); + $dbcon->connect(); $jobRepo->RunJob($job); $jobRepo->setJobRunning($job, false); exit;