forked from Qortal/qortal
Don't throttle the arbitrary data file request threads when there are items to process.
This commit is contained in:
parent
c90c287601
commit
85b3278c8a
@ -31,8 +31,6 @@ public class ArbitraryDataFileRequestThread implements Runnable {
|
||||
|
||||
try {
|
||||
while (!Controller.isStopping()) {
|
||||
Thread.sleep(1000);
|
||||
|
||||
Long now = NTP.getTime();
|
||||
this.processFileHashes(now);
|
||||
}
|
||||
@ -41,7 +39,7 @@ public class ArbitraryDataFileRequestThread implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
private void processFileHashes(Long now) {
|
||||
private void processFileHashes(Long now) throws InterruptedException {
|
||||
if (Controller.isStopping()) {
|
||||
return;
|
||||
}
|
||||
@ -91,6 +89,7 @@ public class ArbitraryDataFileRequestThread implements Runnable {
|
||||
|
||||
if (!shouldProcess) {
|
||||
// Nothing to do
|
||||
Thread.sleep(1000L);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user