mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix background task queue, sorry
This commit is contained in:
@@ -93,8 +93,13 @@ public class BackgroundTaskQueue {
|
||||
ProgressManager.getInstance().runProcess(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// calls task's run and onCancel() or onSuccess()
|
||||
RunBackgroundable.runIfBackgroundThread(backgroundable, pi, runnable);
|
||||
ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// calls task's run and onCancel() or onSuccess()
|
||||
RunBackgroundable.runIfBackgroundThread(backgroundable, pi, runnable);
|
||||
}
|
||||
});
|
||||
}
|
||||
}, pi);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user