Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Becker2013-09-17 12:36:32 +0000
committerThomas Becker2013-09-17 12:39:00 +0000
commit74a75e3d42e38c08fcc58c286f2dce0a70c46a9b (patch)
tree5e47dd3962cc29587c91e4d36fc7e908f1eb4255 /tests
parent000793a7aa0eec4fbc1689fc930fad5226efde9b (diff)
downloadorg.eclipse.jetty.project-74a75e3d42e38c08fcc58c286f2dce0a70c46a9b.tar.gz
org.eclipse.jetty.project-74a75e3d42e38c08fcc58c286f2dce0a70c46a9b.tar.xz
org.eclipse.jetty.project-74a75e3d42e38c08fcc58c286f2dce0a70c46a9b.zip
test chat fix
Diffstat (limited to 'tests')
-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 dabfacd81c..81325d689e 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);
}
}
}

Back to the top