mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
save wallet on each poll
This commit is contained in:
parent
0105c1436a
commit
fa25843684
1 changed files with 4 additions and 4 deletions
|
@ -1808,21 +1808,21 @@ public class XmrWalletService extends XmrWalletBase {
|
||||||
//e.printStackTrace();
|
//e.printStackTrace();
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
synchronized (pollLock) {
|
||||||
|
pollInProgress = false;
|
||||||
|
}
|
||||||
|
|
||||||
// cache wallet info last
|
// cache wallet info last
|
||||||
synchronized (walletLock) {
|
synchronized (walletLock) {
|
||||||
if (wallet != null && !isShutDownStarted) {
|
if (wallet != null && !isShutDownStarted) {
|
||||||
try {
|
try {
|
||||||
cacheWalletInfo();
|
cacheWalletInfo();
|
||||||
|
requestSaveMainWallet();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized (pollLock) {
|
|
||||||
pollInProgress = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue