Catch all exceptions in PirateLightClient

This commit is contained in:
CalDescent 2022-05-24 20:48:57 +01:00
parent 761d461bad
commit 32213b1236

View File

@ -591,7 +591,7 @@ public class PirateLightClient extends BitcoinyBlockchainProvider {
LOGGER.debug(() -> String.format("Connected to %s", server)); LOGGER.debug(() -> String.format("Connected to %s", server));
this.currentServer = server; this.currentServer = server;
return true; return true;
} catch (RuntimeException e) { } catch (Exception e) {
// Didn't work, try another server... // Didn't work, try another server...
closeServer(); closeServer();
} }