mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-23 03:59:36 +00:00
fix npe if no localhost connection
This commit is contained in:
parent
59e5f8e79a
commit
f9c5cd1f2c
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ public final class CoreMoneroConnectionsService {
|
||||||
boolean isLocal = CoreMoneroNodeService.isLocalHost(daemon.getRpcConnection().getUri());
|
boolean isLocal = CoreMoneroNodeService.isLocalHost(daemon.getRpcConnection().getUri());
|
||||||
if (isLocal) {
|
if (isLocal) {
|
||||||
updateDaemonInfo();
|
updateDaemonInfo();
|
||||||
if (lastInfo.isBusySyncing() || (lastInfo.getHeightWithoutBootstrap() != null && lastInfo.getHeightWithoutBootstrap() > 0 && lastInfo.getHeightWithoutBootstrap() < lastInfo.getHeight())) return REFRESH_PERIOD_REMOTE_MS; // refresh slower if syncing or bootstrapped
|
if (lastInfo != null && (lastInfo.isBusySyncing() || (lastInfo.getHeightWithoutBootstrap() != null && lastInfo.getHeightWithoutBootstrap() > 0 && lastInfo.getHeightWithoutBootstrap() < lastInfo.getHeight()))) return REFRESH_PERIOD_REMOTE_MS; // refresh slower if syncing or bootstrapped
|
||||||
else return REFRESH_PERIOD_LOCAL_MS; // TODO: announce faster refresh after done syncing
|
else return REFRESH_PERIOD_LOCAL_MS; // TODO: announce faster refresh after done syncing
|
||||||
} else {
|
} else {
|
||||||
return REFRESH_PERIOD_REMOTE_MS;
|
return REFRESH_PERIOD_REMOTE_MS;
|
||||||
|
|
Loading…
Reference in a new issue