More re-factoring: AsyncContext will throw exception
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 14 Sep 2010 12:38:53 +0000 (12:38 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 14 Sep 2010 12:38:53 +0000 (12:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@996871 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/Request.java

index f891be0..175f574 100644 (file)
@@ -1589,10 +1589,8 @@ public class Request
             throw new IllegalStateException("Not supported.");
         }
         
-        if (asyncContext==null) {
+        if (asyncContext == null) {
             asyncContext = new AsyncContextImpl(this);
-        } else if (asyncContext.isStarted()) {
-            throw new IllegalStateException("Already started.");
         }
         
         asyncContext.setStarted(getContext(), request, response,