Fix crash
This commit is contained in:
parent
4316103022
commit
6f99805443
1 changed files with 13 additions and 11 deletions
|
@ -120,19 +120,21 @@ public abstract class DynamicNetwork<A, N> implements ITransmitterNetwork<A, N>,
|
|||
{
|
||||
Iterator<DelayQueue> i = updateQueue.iterator();
|
||||
|
||||
while(i.hasNext())
|
||||
{
|
||||
DelayQueue q = i.next();
|
||||
|
||||
if(q.delay > 0)
|
||||
try {
|
||||
while(i.hasNext())
|
||||
{
|
||||
q.delay--;
|
||||
DelayQueue q = i.next();
|
||||
|
||||
if(q.delay > 0)
|
||||
{
|
||||
q.delay--;
|
||||
}
|
||||
else {
|
||||
needsUpdate = true;
|
||||
i.remove();
|
||||
}
|
||||
}
|
||||
else {
|
||||
needsUpdate = true;
|
||||
i.remove();
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue