forked from Qortal/qortal
Catch RuntimeException, so that the gRPC client is shutdown.
This commit is contained in:
parent
30567d0e87
commit
774a3b3dcd
@ -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 (ClassCastException | NullPointerException e) {
|
} catch (RuntimeException e) {
|
||||||
// Didn't work, try another server...
|
// Didn't work, try another server...
|
||||||
closeServer();
|
closeServer();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user