diff --git a/src/Shell/BlockShell.php b/src/Shell/BlockShell.php index fcb0c59..79d91ce 100644 --- a/src/Shell/BlockShell.php +++ b/src/Shell/BlockShell.php @@ -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(); }