small reconnect fix for forevermempool
This commit is contained in:
parent
537dd85473
commit
f66101a9de
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
try {
|
||||
$conn->disconnect();
|
||||
} catch (\Exception $e) {
|
||||
// ignore possible disconnect errors
|
||||
}
|
||||
|
||||
$conn->connect();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue