potential fix for an infinite loop while adding nodes

This commit is contained in:
PrototypeTrousers
2021-10-29 14:09:19 -03:00
parent 5e21101619
commit 6d7c65dd70
+1 -1
View File
@@ -170,7 +170,7 @@ public class GridStorageCache implements IStorageGrid
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.activeCellProviders.add( cc );