Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #12 from ecaron/master

Fix incorrect logging when a reconnect occurs
  • Loading branch information...
commit 20dbc34300a264e77866ca75cbdcaa9f42e01e7c 2 parents 7705ddf + 704ccca
@ecaron ecaron authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 processor.php
View
8 processor.php
@@ -166,9 +166,11 @@
//Make sure our connection is still active, otherwise reconnect
$query = $connection->query("SELECT NOW()");
if ($query === false) {
- $connection->real_connect($host, $user, $pass);
- logError("[$iniFile] Connection error on $database\n\t"
- . $connection->error);
+ if ($connection->real_connect($host, $user, $pass) === false) {
+ logError("[$iniFile] Connection error on $database\n\t"
+ . $connection->error);
+ continue;
+ }
}
$databaseSuccess = true;
Please sign in to comment.
Something went wrong with that request. Please try again.