Skip to content

Commit

Permalink
Wallet: expose saveNow/saveLater to subclasses.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehearn committed Apr 29, 2014
1 parent 31c8f8b commit 6160a2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/com/google/bitcoin/core/Wallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,15 @@ public void shutdownAutosaveAndWait() {
}
}

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 {
Expand Down

0 comments on commit 6160a2d

Please sign in to comment.