fix new lockup issue (i love java)
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 1m57s
/ Build BaseBand Loader (push) Successful in 1m23s

This commit is contained in:
Daniella / Tove 2024-06-18 19:23:04 +02:00
parent 484117aaf5
commit 1b0a3eba96
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -119,7 +119,7 @@ public class CustomClassLoader extends ClassLoader implements Util {
} }
@Override @Override
protected synchronized Class<?> findClass(String name) throws ClassNotFoundException { protected Class<?> findClass(String name) throws ClassNotFoundException {
synchronized (Launch.classLoader) { synchronized (Launch.classLoader) {
if (names.contains(name.replace('.', '/') + ".class")) { if (names.contains(name.replace('.', '/') + ".class")) {
Class<?> clazz = loadBBClass(name); Class<?> clazz = loadBBClass(name);
@ -135,7 +135,7 @@ public class CustomClassLoader extends ClassLoader implements Util {
} }
@Override @Override
public synchronized Class<?> loadClass(String name) throws ClassNotFoundException { public Class<?> loadClass(String name) throws ClassNotFoundException {
synchronized (Launch.classLoader) { synchronized (Launch.classLoader) {
return super.loadClass(name); return super.loadClass(name);
} }