mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
comment
This commit is contained in:
@@ -263,7 +263,7 @@ public class CacheUpdateRunner extends DumbModeTask {
|
||||
try {
|
||||
final FileContent fileContent = myQueue.take(myInnerIndicator);
|
||||
if (fileContent == null) {
|
||||
myFinished.set(Boolean.TRUE);
|
||||
myFinished.set(true);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -295,6 +295,7 @@ public class CacheUpdateRunner extends DumbModeTask {
|
||||
@Override
|
||||
public void run() {
|
||||
if (myProcessInReadAction) {
|
||||
// in wait methods we don't want to deadlock by grabbing write lock (or having it in queue) and trying to run read action in separate thread
|
||||
if (!ApplicationManagerEx.getApplicationEx().tryRunReadAction(action)) {
|
||||
throw new ProcessCanceledException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user