forked from Qortal/qortal
Prioritize syncing over transaction importing.
This commit is contained in:
parent
8a1fb6fe4e
commit
5700369935
@ -1279,6 +1279,11 @@ public class Controller extends Thread {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Synchronizer.getInstance().isSyncRequested() || Synchronizer.getInstance().isSynchronizing()) {
|
||||
// Prioritize syncing, and don't attempt to lock
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
|
||||
if (!blockchainLock.tryLock(2, TimeUnit.SECONDS)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user