Attempt to resolve a concurrent modification exception inside of DelayedExecutorService#onTick
This commit is contained in:
parent
ab51609213
commit
8be88eedda
2 changed files with 13 additions and 10 deletions
|
@ -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)
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue