Attempt to resolve a concurrent modification exception inside of DelayedExecutorService#onTick

This commit is contained in:
Aria 2023-05-08 06:09:09 -07:00
parent ab51609213
commit 8be88eedda
2 changed files with 13 additions and 10 deletions

View file

@ -12,7 +12,7 @@ plugins {
id 'maven-publish' id 'maven-publish'
} }
version = "1.1.9" version = "1.1.10"
group = "dev.zontreck" group = "dev.zontreck"
archivesBaseName = "LibAC" archivesBaseName = "LibAC"
java.toolchain.languageVersion = JavaLanguageVersion.of(17) java.toolchain.languageVersion = JavaLanguageVersion.of(17)

View file

@ -126,6 +126,8 @@ public class DelayedExecutorService {
DelayedExecutorService.stopRepeatingThread(); DelayedExecutorService.stopRepeatingThread();
} }
Iterator<DelayedExecution> it = EXECUTORS.iterator(); Iterator<DelayedExecution> it = EXECUTORS.iterator();
try{
while(it.hasNext()) while(it.hasNext())
{ {
DelayedExecution e = it.next(); DelayedExecution e = it.next();
@ -137,6 +139,7 @@ public class DelayedExecutorService {
tx.start(); tx.start();
} }
} }
}catch(Exception e){}
} }
public static int getNext() public static int getNext()