Don't call Grid cache updates if the grid is empty.
This commit is contained in:
@@ -198,12 +198,16 @@ public class Grid implements IGrid
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void update()
|
public void update()
|
||||||
|
{
|
||||||
|
// are ther any nodes left?
|
||||||
|
if ( pivot != null )
|
||||||
{
|
{
|
||||||
for (IGridCache gc : caches.values())
|
for (IGridCache gc : caches.values())
|
||||||
{
|
{
|
||||||
gc.onUpdateTick();
|
gc.onUpdateTick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Iterable<GridCacheWrapper> getCacheWrappers()
|
public Iterable<GridCacheWrapper> getCacheWrappers()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user