Skip to content

Commit

Permalink
Fix #1633 Gephi 0.9.1 freezes for dynamical graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
eduramiba committed Dec 14, 2016
1 parent 1034980 commit 64b1f7d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public synchronized void reset() {
graphModel = controller.getGraphModel();
if (graphModel != null) {
graph = graphModel.getGraphVisible();
graph.readLock();
graph.writeLock();
}

try {
Expand All @@ -272,7 +272,8 @@ public synchronized void reset() {
}
} finally {
if (graphModel != null) {
graph.readUnlockAll();
graphModel.getGraph().readUnlockAll();
graph.writeUnlock();
}
}

Expand Down

0 comments on commit 64b1f7d

Please sign in to comment.