1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[323299] [files] remote file view adapter needs to use the latest version of IRemoteFile

-removed synchronize block to avoid any deadlock risk
This commit is contained in:
David McKnight 2010-09-07 17:51:05 +00:00
parent 7c53225970
commit 25cfe4b60b

View file

@ -761,7 +761,11 @@ public class SystemViewRemoteFileAdapter
}
}
synchronized (file){
// taking out the synchronized block to avoid potential deadlock
// TODO next release, find a risk-free way to avoid duplicate queries
// synchronized (file)
{
boolean hasChildren = file.hasContents(RemoteChildrenContentsType.getInstance(), filter);
if (hasChildren && !file.isStale())