mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 10:07:38 +01:00
Don't infinite loop.
This commit is contained in:
parent
5e3a3d438a
commit
b923ea847b
@ -20,6 +20,8 @@ public class PluginClassloader extends URLClassLoader
|
||||
protected Class<?> findClass(String name) throws ClassNotFoundException
|
||||
{
|
||||
for (PluginClassloader loader : allLoaders)
|
||||
{
|
||||
if (loader != this)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -28,6 +30,7 @@ public class PluginClassloader extends URLClassLoader
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new ClassNotFoundException();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user