1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-01 18:32:33 +02:00

Fix concurrent errors in URLClassLoaderAccess (#3403)

This commit is contained in:
OOP-778
2022-09-05 23:39:52 +03:00
committed by GitHub
parent a2e4a81e29
commit 1790c0ad47

View File

@@ -167,8 +167,10 @@ public abstract class URLClassLoaderAccess {
URLClassLoaderAccess.throwError(new NullPointerException("unopenedURLs or pathURLs")); URLClassLoaderAccess.throwError(new NullPointerException("unopenedURLs or pathURLs"));
} }
this.unopenedURLs.add(url); synchronized (this.unopenedURLs) {
this.pathURLs.add(url); this.unopenedURLs.add(url);
this.pathURLs.add(url);
}
} }
} }