From a2bc79922e751cd3480b69bc0a53208771d68d86 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Sun, 21 Oct 2012 16:26:17 +1100 Subject: [PATCH] 392237 Converted ChatServlet to servlet 3.0 --- test-jetty-webapp/src/main/java/com/acme/ChatServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java index 90614ee8d8b..8ccc9bbdf18 100644 --- a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java +++ b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java @@ -198,7 +198,7 @@ public class ChatServlet extends HttpServlet // wakeup member if polling AsyncContext async=m._async.get(); - if (m._async.compareAndSet(async,null)) + if (async!=null & m._async.compareAndSet(async,null)) async.dispatch(); } }