mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 10:37:46 +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
|
protected Class<?> findClass(String name) throws ClassNotFoundException
|
||||||
{
|
{
|
||||||
for (PluginClassloader loader : allLoaders)
|
for (PluginClassloader loader : allLoaders)
|
||||||
|
{
|
||||||
|
if (loader != this)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -28,6 +30,7 @@ public class PluginClassloader extends URLClassLoader
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
throw new ClassNotFoundException();
|
throw new ClassNotFoundException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user