mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-17 00:07:49 +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);
|
||||
if (connection != null) wallet.getDaemonConnection().setPrintStackTrace(PRINT_STACK_TRACE);
|
||||
if (connection != null && !Boolean.FALSE.equals(connection.isConnected())) {
|
||||
wallet.startSyncing(connectionsService.getRefreshPeriodMs());
|
||||
new Thread(() -> {
|
||||
try {
|
||||
wallet.startSyncing(connectionsService.getRefreshPeriodMs());
|
||||
wallet.sync();
|
||||
} catch (Exception e) {
|
||||
log.warn("Failed to sync main wallet after setting daemon connection: " + e.getMessage());
|
||||
|
|
Loading…
Reference in a new issue