mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore previous thread priority
This commit is contained in:
@@ -314,16 +314,15 @@ public class FileUtil extends FileUtilRt {
|
||||
final Runnable deleteFilesTask = new Runnable() {
|
||||
public void run() {
|
||||
final Thread currentThread = Thread.currentThread();
|
||||
final int priority = currentThread.getPriority();
|
||||
currentThread.setPriority(Thread.MIN_PRIORITY);
|
||||
//ShutDownTracker.getInstance().registerStopperThread(currentThread);
|
||||
try {
|
||||
for (File tempFile : tempFiles) {
|
||||
delete(tempFile);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
//ShutDownTracker.getInstance().unregisterStopperThread(currentThread);
|
||||
currentThread.setPriority(Thread.NORM_PRIORITY);
|
||||
currentThread.setPriority(priority);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user