Issue #1110 synchronize sat resource init and remove to avoid concurrent modification.
Former-commit-id: e3c5526f9b12ae38c12094e7ebf9f9d6823f3257
This commit is contained in:
parent
ada6ecf5f3
commit
37d2411b26
1 changed files with 8 additions and 7 deletions
|
@ -514,15 +514,16 @@ public class SatResource extends
|
|||
|
||||
@Override
|
||||
public void remove(DataTime dataTime) {
|
||||
if (!this.dataTimes.contains(dataTime))
|
||||
return;
|
||||
synchronized (this) {
|
||||
if (!this.dataTimes.contains(dataTime))
|
||||
return;
|
||||
|
||||
this.dataTimes.remove(dataTime);
|
||||
|
||||
FileBasedTileSet tile = tileSet.remove(dataTime);
|
||||
if (tile != baseTile && tile != null)
|
||||
tile.dispose();
|
||||
this.dataTimes.remove(dataTime);
|
||||
|
||||
FileBasedTileSet tile = tileSet.remove(dataTime);
|
||||
if (tile != baseTile && tile != null)
|
||||
tile.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue