mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 13:26:44 +00:00
followup to public server change on wallet history failure
This commit is contained in:
parent
6f5ee7c695
commit
ec918b78ed
1 changed files with 2 additions and 2 deletions
|
@ -717,9 +717,9 @@ public class AppServices {
|
|||
|
||||
@Subscribe
|
||||
public void walletHistoryFailed(WalletHistoryFailedEvent event) {
|
||||
if(Config.get().getServerType() == ServerType.PUBLIC_ELECTRUM_SERVER && connectionService != null && connectionService.isRunning()) {
|
||||
if(Config.get().getServerType() == ServerType.PUBLIC_ELECTRUM_SERVER && isConnected()) {
|
||||
onlineProperty.set(false);
|
||||
log.info("Connection to " + Config.get().getServerAddress() + " failed, reconnecting to another server...");
|
||||
log.info("Failed to fetch wallet history from " + Config.get().getServerAddress() + ", reconnecting to another server...");
|
||||
Config.get().changePublicServer();
|
||||
onlineProperty.set(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue