Fixing ConcurrentModificationException
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
859e404536
Commit
38b95a144b
@ -24,7 +24,7 @@ import java.util.List;
|
||||
|
||||
public abstract class Recorder {
|
||||
|
||||
private static List<Recorder> recorders = new ArrayList<>();
|
||||
private static final List<Recorder> recorders = new ArrayList<>();
|
||||
|
||||
public static void rBoolean(boolean b){
|
||||
recorders.forEach((recorder) -> recorder.writeBoolean(b));
|
||||
@ -63,7 +63,8 @@ public abstract class Recorder {
|
||||
}
|
||||
|
||||
public static void closeAll(){
|
||||
recorders.forEach(Recorder::close);
|
||||
while(!recorders.isEmpty())
|
||||
recorders.get(0).close();
|
||||
}
|
||||
|
||||
protected Recorder(){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren