Fixed potential grid thread deadlock
This commit is contained in:
parent
5d10f1412f
commit
60f13cabe8
2 changed files with 11 additions and 14 deletions
|
@ -21,8 +21,6 @@ public abstract class NodeGrid<N extends Node> extends Grid<N>
|
|||
|
||||
AbstractMap<Object, ForgeDirection> connections = node.getConnections();
|
||||
|
||||
synchronized (connections)
|
||||
{
|
||||
for (Object connection : connections.keySet())
|
||||
{
|
||||
if (isValidNode(connection) && connection instanceof Node)
|
||||
|
@ -42,7 +40,6 @@ public abstract class NodeGrid<N extends Node> extends Grid<N>
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deconstruct()
|
||||
|
|
|
@ -20,7 +20,7 @@ public class TickingGrid<N extends Node> extends NodeGrid<N> implements IUpdate
|
|||
@Override
|
||||
public void update()
|
||||
{
|
||||
// synchronized (nodes)
|
||||
synchronized (nodes)
|
||||
{
|
||||
for (Node node : nodes)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue