diff --git a/src/Models/QueueJobModel.php b/src/Models/QueueJobModel.php index 4f77a52..a086fad 100644 --- a/src/Models/QueueJobModel.php +++ b/src/Models/QueueJobModel.php @@ -51,7 +51,7 @@ public function getFromQueue(string $name, array $priority): ?QueueJob { // For SQLite3 memory database this will cause problems // so check if we're not in the testing environment first. - if ($this->db->database !== ':memory:') { + if ($this->db->database !== ':memory:' && $this->db->connID !== false) { // Make sure we still have the connection $this->db->reconnect(); }