Fixed Bug: #0641 - Redstone P2P Crash

Fixed an issue where tunnels would de-register if linked a certain way.
This commit is contained in:
AlgorithmX2
2014-07-14 23:47:07 -05:00
parent 675d068934
commit e1d3fdb8d7
3 changed files with 38 additions and 16 deletions
+10 -3
View File
@@ -62,8 +62,11 @@ public class P2PCache implements IGridCache
public void updateFreq(PartP2PTunnel t, long NewFreq)
{
outputs.remove( t.freq, t );
inputs.remove( t.freq );
if ( outputs.containsValue( t ) )
outputs.remove( t.freq, t );
if ( inputs.containsValue( t ) )
inputs.remove( t.freq );
t.freq = NewFreq;
@@ -150,7 +153,11 @@ public class P2PCache implements IGridCache
if ( in == null )
return NullColl;
return inputs.get( freq ).getCollection( outputs.get( freq ) );
TunnelCollection<PartP2PTunnel> out = inputs.get( freq ).getCollection( outputs.get( freq ), c );
if ( out == null )
return NullColl;
return out;
}
public PartP2PTunnel getInput(long freq)