small reconnect fix for forevermempool

This commit is contained in:
Akinwale Ariwodola 2018-03-14 22:51:55 +01:00
parent 537dd85473
commit f66101a9de

View file

@ -1296,7 +1296,12 @@ class BlockShell extends Shell {
echo "Mempool database error. Attempting to reconnect.\n";
// Final fix for MySQL server has gone away (hopefully)
$conn->disconnect();
try {
$conn->disconnect();
} catch (\Exception $e) {
// ignore possible disconnect errors
}
$conn->connect();
}