mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-17 08:17:57 +00:00
avoid error on resume from standby
This commit is contained in:
parent
1fdb02bd1f
commit
6030f1dd57
1 changed files with 1 additions and 1 deletions
|
@ -772,9 +772,9 @@ public class XmrWalletService {
|
||||||
wallet.setDaemonConnection(connection);
|
wallet.setDaemonConnection(connection);
|
||||||
if (connection != null) wallet.getDaemonConnection().setPrintStackTrace(PRINT_STACK_TRACE);
|
if (connection != null) wallet.getDaemonConnection().setPrintStackTrace(PRINT_STACK_TRACE);
|
||||||
if (connection != null && !Boolean.FALSE.equals(connection.isConnected())) {
|
if (connection != null && !Boolean.FALSE.equals(connection.isConnected())) {
|
||||||
wallet.startSyncing(connectionsService.getRefreshPeriodMs());
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
|
wallet.startSyncing(connectionsService.getRefreshPeriodMs());
|
||||||
wallet.sync();
|
wallet.sync();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("Failed to sync main wallet after setting daemon connection: " + e.getMessage());
|
log.warn("Failed to sync main wallet after setting daemon connection: " + e.getMessage());
|
||||||
|
|
Loading…
Reference in a new issue