mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-25 11:11:25 +00:00
Fixed occasional ConcurrentModificationException in the block archive reader.
This commit is contained in:
@@ -145,6 +145,7 @@ public class BlockArchiveReader {
|
||||
}
|
||||
|
||||
private String getFilenameForHeight(int height) {
|
||||
synchronized (this.fileListCache) {
|
||||
Iterator it = this.fileListCache.entrySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
Map.Entry pair = (Map.Entry) it.next();
|
||||
@@ -161,6 +162,7 @@ public class BlockArchiveReader {
|
||||
return filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user