Archiviert
13
0

Prevent ConcurrentModifcationExceptions.

See http://pastebin.com/UBvGSFs9/
Dieser Commit ist enthalten in:
Kristian Stangeland 2013-03-28 21:58:06 -04:00
Ursprung d643690eef
Commit b3322b35c1

Datei anzeigen

@ -198,6 +198,11 @@ public class BackgroundCompiler {
synchronized (listenerLock) {
list = listeners.get(key);
// Prevent ConcurrentModificationExceptions
if (list != null) {
list = Lists.newArrayList(list);
}
}
// Only execute the listeners if there is a list