Fixed handling of the close state in case it's already closed.

This commit is contained in:
Simone Bordet 2014-08-06 15:21:33 +02:00
parent 22cdca9131
commit 015c34d865
1 changed files with 4 additions and 0 deletions

View File

@ -382,6 +382,10 @@ public abstract class IteratingCallback implements Callback
return;
break;
}
case CLOSED:
{
return;
}
default:
{
if (_state.compareAndSet(current, State.CLOSED))