Fix crash

This commit is contained in:
Victor Shcherb 2016-08-14 21:28:06 +02:00
parent 065668b72d
commit d6c19824b8

View file

@ -1041,8 +1041,10 @@ public class ResourceManager {
indexFileNames.remove(fileName);
renderer.closeConnection(fileName);
BinaryMapReaderResource resource = fileReaders.remove(fileName);
if(resource != null) {
resource.close();
}
}
public synchronized void close(){
imagesOnFS.clear();