test chat fix

This commit is contained in:
Thomas Becker 2013-09-17 14:36:32 +02:00
parent 9fb8fbec14
commit 2e064351a1
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}
}