mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-25 07:07:39 +01:00
Wallet: expose saveNow/saveLater to subclasses.
This commit is contained in:
parent
31c8f8b494
commit
6160a2db3d
1 changed files with 3 additions and 2 deletions
|
@ -456,14 +456,15 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi
|
|||
}
|
||||
}
|
||||
|
||||
private void saveLater() {
|
||||
/** Requests an asynchronous save on a background thread */
|
||||
protected void saveLater() {
|
||||
WalletFiles files = vFileManager;
|
||||
if (files != null)
|
||||
files.saveLater();
|
||||
}
|
||||
|
||||
/** If auto saving is enabled, do an immediate sync write to disk ignoring any delays. */
|
||||
private void saveNow() {
|
||||
protected void saveNow() {
|
||||
WalletFiles files = vFileManager;
|
||||
if (files != null) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue