mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 18:17:38 +01:00
Don't infinite loop.
This commit is contained in:
parent
5e3a3d438a
commit
b923ea847b
@ -21,11 +21,14 @@ public class PluginClassloader extends URLClassLoader
|
|||||||
{
|
{
|
||||||
for (PluginClassloader loader : allLoaders)
|
for (PluginClassloader loader : allLoaders)
|
||||||
{
|
{
|
||||||
try
|
if (loader != this)
|
||||||
{
|
|
||||||
return loader.loadClass(name);
|
|
||||||
} catch (ClassNotFoundException ex)
|
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return loader.loadClass(name);
|
||||||
|
} catch (ClassNotFoundException ex)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new ClassNotFoundException();
|
throw new ClassNotFoundException();
|
||||||
|
Loading…
Reference in New Issue
Block a user