408117 isAsyncStarted is false on redispatch

This commit is contained in:
Greg Wilkins 2013-05-17 11:41:22 +10:00
parent 52444486d1
commit 8a6ab9ab9d
2 changed files with 19 additions and 1 deletions

View File

@ -569,6 +569,24 @@ public class HttpChannelState
}
}
public boolean isAsyncStarted()
{
synchronized (this)
{
switch(_state)
{
case ASYNCSTARTED:
case REDISPATCHING:
case COMPLETECALLED:
case ASYNCWAIT:
return true;
default:
return false;
}
}
}
public boolean isAsync()
{
synchronized (this)

View File

@ -1390,7 +1390,7 @@ public class Request implements HttpServletRequest
@Override
public boolean isAsyncStarted()
{
return getHttpChannelState().isAsync();
return getHttpChannelState().isAsyncStarted();
}