Skip to content

Commit

Permalink
call remove map on fx thread
Browse files Browse the repository at this point in the history
  • Loading branch information
obydog002 committed Oct 29, 2024
1 parent efd4ce9 commit 77b95fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/faforever/client/map/MapService.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ protected Void call() {
}

private void removeMap(Path mapFolder) {
mapsByFolderName.remove(mapFolder.getFileName().toString().toLowerCase(Locale.ROOT));
fxApplicationThreadExecutor.execute(
() -> mapsByFolderName.remove(mapFolder.getFileName().toString().toLowerCase(Locale.ROOT))
);
}

private void addInstalledMap(Path mapFolder) throws MapLoadException {
Expand Down

0 comments on commit 77b95fb

Please sign in to comment.