Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-09-17 12:36:32 +0000
committerThomas Becker2013-09-17 12:36:58 +0000
commit2e064351a12f68d526e5bac3e3a96a49165df7fd (patch)
tree6d373787cfeffcf6bb6a75f5881ec7241fc1397d /tests/test-webapps
parent9fb8fbec141f65fae81a1f8e898ce492cb3fe8ef (diff)
downloadorg.eclipse.jetty.project-2e064351a12f68d526e5bac3e3a96a49165df7fd.tar.gz
org.eclipse.jetty.project-2e064351a12f68d526e5bac3e3a96a49165df7fd.tar.xz
org.eclipse.jetty.project-2e064351a12f68d526e5bac3e3a96a49165df7fd.zip
test chat fix
Diffstat (limited to 'tests/test-webapps')
-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