mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-23 20:39:38 +00:00
Fix concurrent errors in URLClassLoaderAccess (#3403)
This commit is contained in:
1 parent
a2e4a81e29
commit
1790c0ad47
1 file changed
+4
-2
+4
-2
@@ -167,8 +167,10 @@ public abstract class URLClassLoaderAccess {
|
||||
URLClassLoaderAccess.throwError(new NullPointerException("unopenedURLs or pathURLs"));
|
||||
}
|
||||
|
||||
this.unopenedURLs.add(url);
|
||||
this.pathURLs.add(url);
|
||||
synchronized (this.unopenedURLs) {
|
||||
this.unopenedURLs.add(url);
|
||||
this.pathURLs.add(url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user