Skip to content

Commit

Permalink
add a new condition for the reconnect call
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Sep 18, 2024
1 parent e3238e9 commit 19544f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/QueueJobModel.php
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit 19544f8

Please sign in to comment.