Skip to content

Commit a879fb6

Browse files
Merge pull request digbang#4 from deInternetJongens/fix/ping-alternative
alternative method for removed ping
2 parents f73710b + 75bbbe8 commit a879fb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private function assertGoodDatabaseConnection()
101101
foreach ($this->managerRegistry->getManagers() as $entityManager) {
102102
$connection = $entityManager->getConnection();
103103

104-
if ($connection->ping() === false) {
104+
if (!$connection->isConnected()) {
105105
$connection->close();
106106
$connection->connect();
107107
}

0 commit comments

Comments
 (0)