Browse Source

Catch RuntimeException, so that the gRPC client is shutdown.

pirate-chain
CalDescent 2 years ago
parent
commit
774a3b3dcd
  1. 2
      src/main/java/org/qortal/crosschain/PirateLightClient.java

2
src/main/java/org/qortal/crosschain/PirateLightClient.java

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

Loading…
Cancel
Save