aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-09-17 08:36:32 (EDT)
committerThomas Becker2013-09-17 08:36:58 (EDT)
commit2e064351a12f68d526e5bac3e3a96a49165df7fd (patch)
tree6d373787cfeffcf6bb6a75f5881ec7241fc1397d
parent9fb8fbec141f65fae81a1f8e898ce492cb3fe8ef (diff)
downloadorg.eclipse.jetty.project-2e064351a12f68d526e5bac3e3a96a49165df7fd.zip
org.eclipse.jetty.project-2e064351a12f68d526e5bac3e3a96a49165df7fd.tar.gz
org.eclipse.jetty.project-2e064351a12f68d526e5bac3e3a96a49165df7fd.tar.bz2
test chat fix
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java b/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java
index dabfacd..81325d6 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java
+++ b/tests/test-webapps/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java
@@ -141,8 +141,7 @@ public class ChatServlet extends HttpServlet
AsyncContext async = request.startAsync();
async.setTimeout(asyncTimeout);
async.addListener(member);
- if (!member._async.compareAndSet(null, async))
- throw new IllegalStateException();
+ member._async.set(async);
}
}
}