Issue #501 clear continuation initial on undispatch

This commit is contained in:
Greg Wilkins 2016-04-16 09:55:16 +10:00
parent 2fa7d3fa37
commit 738f61d0eb
1 changed files with 1 additions and 2 deletions

View File

@ -218,6 +218,7 @@ public class Servlet3Continuation implements Continuation, AsyncListener
{
if (isSuspended())
{
_initial=false;
if (ContinuationFilter.__debug)
throw new ContinuationThrowable();
throw __exception;
@ -244,14 +245,12 @@ public class Servlet3Continuation implements Continuation, AsyncListener
@Override
public void onStartAsync(AsyncEvent event) throws IOException
{
_initial=false;
}
/* ------------------------------------------------------------ */
@Override
public void onTimeout(AsyncEvent event) throws IOException
{
_initial=false;
_expired=true;
for (ContinuationListener listener:_listeners)
listener.onTimeout(this);