Remove stopping JobSchedule executor. It now fails on shutdown attempt.

This commit is contained in:
Nikolay Krasko
2016-04-01 20:49:22 +03:00
parent 554b7d9618
commit 9c43ff281c
@@ -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)