Fixed crash

This commit is contained in:
Anuken 2022-02-16 00:26:15 -05:00
parent fbf0fec135
commit a0c373bec6

View File

@ -92,7 +92,8 @@ public class ControlPathfinder{
for(var req : requests.values()){
//skipped N update -> drop it
if(req.lastUpdateId <= state.updateId - 10){
requests.remove(req.unit);
//concurrent modification!
Core.app.post(() -> requests.remove(req.unit));
req.thread.queue.post(() -> req.thread.requests.remove(req));
}
}