mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-03 03:12:46 +02:00
Fix concurrent errors in URLClassLoaderAccess (#3403)
This commit is contained in:
@@ -167,10 +167,12 @@ public abstract class URLClassLoaderAccess {
|
|||||||
URLClassLoaderAccess.throwError(new NullPointerException("unopenedURLs or pathURLs"));
|
URLClassLoaderAccess.throwError(new NullPointerException("unopenedURLs or pathURLs"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
synchronized (this.unopenedURLs) {
|
||||||
this.unopenedURLs.add(url);
|
this.unopenedURLs.add(url);
|
||||||
this.pathURLs.add(url);
|
this.pathURLs.add(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static class Noop extends URLClassLoaderAccess {
|
private static class Noop extends URLClassLoaderAccess {
|
||||||
private static final Noop INSTANCE = new Noop();
|
private static final Noop INSTANCE = new Noop();
|
||||||
|
Reference in New Issue
Block a user