Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e0a7043

Browse files
committed
add a new condition for the reconnect call
1 parent 7cccd8e commit e0a7043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Models/QueueJobModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getFromQueue(string $name, array $priority): ?QueueJob
5151
{
5252
// For SQLite3 memory database this will cause problems
5353
// so check if we're not in the testing environment first.
54-
if ($this->db->database !== ':memory:') {
54+
if ($this->db->database !== ':memory:' && $this->db->connID !== false) {
5555
// Make sure we still have the connection
5656
$this->db->reconnect();
5757
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /