mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
cache wallet info last on poll
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (java) (push) Has been cancelled
Some checks failed
CI / build (macos-13) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
Codacy Coverage Reporter / Publish coverage (push) Has been cancelled
CodeQL / Analyze (java) (push) Has been cancelled
This commit is contained in:
parent
a149d92392
commit
23a7fb3d16
1 changed files with 9 additions and 3 deletions
|
@ -1845,9 +1845,6 @@ public class XmrWalletService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// cache wallet info
|
|
||||||
cacheWalletInfo();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (wallet == null || isShutDownStarted) return;
|
if (wallet == null || isShutDownStarted) return;
|
||||||
boolean isConnectionRefused = e.getMessage() != null && e.getMessage().contains("Connection refused");
|
boolean isConnectionRefused = e.getMessage() != null && e.getMessage().contains("Connection refused");
|
||||||
|
@ -1857,6 +1854,15 @@ public class XmrWalletService {
|
||||||
//e.printStackTrace();
|
//e.printStackTrace();
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|
||||||
|
// cache wallet info last
|
||||||
|
if (wallet != null && !isShutDownStarted) {
|
||||||
|
try {
|
||||||
|
cacheWalletInfo();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
pollInProgress = false;
|
pollInProgress = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue