forked from Qortal/qortal
Fixed issue in rebase
This commit is contained in:
parent
483e7549f8
commit
816b01c1fc
@ -863,7 +863,7 @@ public class Synchronizer extends Thread {
|
||||
// Make sure we're the only thread modifying the blockchain
|
||||
// If we're already synchronizing with another peer then this will also return fast
|
||||
ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
|
||||
if (!blockchainLock.tryLock(3, TimeUnit.SECONDS))
|
||||
if (!blockchainLock.tryLock(3, TimeUnit.SECONDS)) {
|
||||
// Wasn't peer's fault we couldn't sync
|
||||
LOGGER.info("Synchronizer couldn't acquire blockchain lock");
|
||||
return SynchronizationResult.NO_BLOCKCHAIN_LOCK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user