potential fix for an infinite loop while adding nodes

This commit is contained in:
PrototypeTrousers
2021-10-29 14:09:19 -03:00
parent 2a466a0e66
commit 48da4eaa06
+1 -1
View File
@@ -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 );