mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
cache wallet info last on poll
This commit is contained in:
parent
a149d92392
commit
23a7fb3d16
@ -1845,9 +1845,6 @@ public class XmrWalletService {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// cache wallet info
|
||||
cacheWalletInfo();
|
||||
} catch (Exception e) {
|
||||
if (wallet == null || isShutDownStarted) return;
|
||||
boolean isConnectionRefused = e.getMessage() != null && e.getMessage().contains("Connection refused");
|
||||
@ -1857,6 +1854,15 @@ public class XmrWalletService {
|
||||
//e.printStackTrace();
|
||||
}
|
||||
} finally {
|
||||
|
||||
// cache wallet info last
|
||||
if (wallet != null && !isShutDownStarted) {
|
||||
try {
|
||||
cacheWalletInfo();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
pollInProgress = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user