Remove stopping JobSchedule executor. It now fails on shutdown attempt.
This commit is contained in:
-13
@@ -129,7 +129,6 @@ class CompilerServicesCleanup(private var pluginClassLoader: ClassLoader?) {
|
||||
if (it < comparableVersionStr("2.4")!!) {
|
||||
// TODO: remove ZipFileCache cleanup after switching to recent idea libs
|
||||
stopZipFileCache()
|
||||
stopJobScheduler()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,18 +140,6 @@ class CompilerServicesCleanup(private var pluginClassLoader: ClassLoader?) {
|
||||
log.kotlinDebug("ZipFileCache finished successfully")
|
||||
}
|
||||
|
||||
private fun stopJobScheduler() {
|
||||
log.kotlinDebug("Stop JobScheduler")
|
||||
|
||||
val jobSchedulerClass = Class.forName("com.intellij.concurrency.JobScheduler", false, pluginClassLoader)
|
||||
|
||||
val getSchedulerMethod = jobSchedulerClass.getMethod("getScheduler")
|
||||
val executorService = getSchedulerMethod.invoke(this) as ScheduledExecutorService
|
||||
|
||||
executorService.shutdown()
|
||||
log.kotlinDebug("JobScheduler stopped")
|
||||
}
|
||||
|
||||
private fun callVoidStaticMethod(classFqName: String, methodName: String) {
|
||||
val shortName = classFqName.substring(classFqName.lastIndexOf('.') + 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user