Fix a wrong lock, spotted by Andreas

This commit is contained in:
Mike Hearn
2014-11-13 22:51:33 +01:00
committed by Andreas Schildbach
parent 8942680ec0
commit 9225cf8c1f

View File

@@ -674,11 +674,11 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadSize(int)} for more info on this. */
public void setKeychainLookaheadSize(int lookaheadSize) {
lock.lock();
keychainLock.lock();
try {
keychain.setLookaheadSize(lookaheadSize);
} finally {
lock.unlock();
keychainLock.unlock();
}
}