Issue #156 Fixed search freezing

This commit is contained in:
Jindra Pet��k
2013-06-29 19:22:19 +02:00
parent 71491b8d79
commit 0f7d7714f6
3 changed files with 9 additions and 9 deletions
@@ -68,15 +68,15 @@ public class Graph {
private void fixGraph(GraphPart part) {
//if(true) return;
try{
try {
while (fixGraphOnce(part, new ArrayList<GraphPart>(), false)) {
}
}catch(Exception | Error ex){
}
} catch (Exception | Error ex) {
//ignore
}
}
private boolean fixGraphOnce(GraphPart part, List<GraphPart> visited, boolean doChildren) {
private boolean fixGraphOnce(GraphPart part, List<GraphPart> visited, boolean doChildren) {
if (visited.contains(part)) {
return false;
}