From 774a3b3dcd59fc5a1302d416efca9d4c752fc5ce Mon Sep 17 00:00:00 2001 From: CalDescent Date: Tue, 24 May 2022 19:52:23 +0100 Subject: [PATCH] Catch RuntimeException, so that the gRPC client is shutdown. --- src/main/java/org/qortal/crosschain/PirateLightClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/qortal/crosschain/PirateLightClient.java b/src/main/java/org/qortal/crosschain/PirateLightClient.java index 1a299277..e8cd7659 100644 --- a/src/main/java/org/qortal/crosschain/PirateLightClient.java +++ b/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(); }