From 77b95fb976dc2af43488c35fae92a271f9a4618d Mon Sep 17 00:00:00 2001 From: obydog002 <> Date: Tue, 29 Oct 2024 20:07:26 +0800 Subject: [PATCH] call remove map on fx thread --- src/main/java/com/faforever/client/map/MapService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/faforever/client/map/MapService.java b/src/main/java/com/faforever/client/map/MapService.java index 16f271fae1..2be6813d45 100644 --- a/src/main/java/com/faforever/client/map/MapService.java +++ b/src/main/java/com/faforever/client/map/MapService.java @@ -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 {