mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 23:50:15 +08:00
complete classloader
This commit is contained in:
parent
e98bfa363f
commit
d88e2aeeaa
@ -34,7 +34,7 @@ internal class PluginsLoader(private val parentClassLoader: ClassLoader) {
|
||||
} catch (e: Throwable) {
|
||||
logger.error("Plugin(${plugin.key}) can't not close its ClassLoader(${cl})", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
classesCache.clear()
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ internal class PluginClassLoader(
|
||||
clazz = loadClass(name)//这里应该是find, 如果不行就要改
|
||||
}
|
||||
pluginsLoader.addClassCache(name, clazz)
|
||||
this.addClassCache(name, clazz)
|
||||
this.addClassCache(name, clazz)
|
||||
clazz
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user