mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-24 23:09:36 -05:00
fix recovery from monerod disconnect
This commit is contained in:
parent
455b1f739c
commit
9ee67a046c
@ -816,12 +816,12 @@ public class XmrWalletService {
|
||||
maybeInitMainWallet();
|
||||
} else {
|
||||
wallet.setDaemonConnection(connection);
|
||||
if (connection != null) wallet.getDaemonConnection().setPrintStackTrace(PRINT_STACK_TRACE);
|
||||
if (connection != null && !Boolean.FALSE.equals(connection.isConnected())) {
|
||||
if (connection != null) {
|
||||
wallet.getDaemonConnection().setPrintStackTrace(PRINT_STACK_TRACE);
|
||||
new Thread(() -> {
|
||||
try {
|
||||
wallet.startSyncing(connectionsService.getRefreshPeriodMs());
|
||||
wallet.sync();
|
||||
if (!Boolean.FALSE.equals(connection.isConnected())) wallet.sync();
|
||||
} catch (Exception e) {
|
||||
log.warn("Failed to sync main wallet after setting daemon connection: " + e.getMessage());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user