potential fix for an infinite loop while adding nodes
This commit is contained in:
+1
-1
@@ -170,7 +170,7 @@ public class GridStorageCache implements IStorageGrid
|
|||||||
|
|
||||||
private CellChangeTracker addCellProvider( final ICellProvider cc, final CellChangeTracker tracker )
|
private CellChangeTracker addCellProvider( final ICellProvider cc, final CellChangeTracker tracker )
|
||||||
{
|
{
|
||||||
if( this.inactiveCellProviders.contains( cc ) )
|
if( this.inactiveCellProviders.contains( cc ) && !this.activeCellProviders.contains( cc ))
|
||||||
{
|
{
|
||||||
this.inactiveCellProviders.remove( cc );
|
this.inactiveCellProviders.remove( cc );
|
||||||
this.activeCellProviders.add( cc );
|
this.activeCellProviders.add( cc );
|
||||||
|
|||||||
Reference in New Issue
Block a user