aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-09-17 08:36:32 (EDT)
committerThomas Becker2013-09-17 08:39:00 (EDT)
commit74a75e3d42e38c08fcc58c286f2dce0a70c46a9b (patch)
tree5e47dd3962cc29587c91e4d36fc7e908f1eb4255
parent000793a7aa0eec4fbc1689fc930fad5226efde9b (diff)
downloadorg.eclipse.jetty.project-74a75e3d42e38c08fcc58c286f2dce0a70c46a9b.zip
org.eclipse.jetty.project-74a75e3d42e38c08fcc58c286f2dce0a70c46a9b.tar.gz
org.eclipse.jetty.project-74a75e3d42e38c08fcc58c286f2dce0a70c46a9b.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);
}
}
}