From 015c34d865dc291bb1ea51999aa835288956463a Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Wed, 6 Aug 2014 15:21:33 +0200 Subject: [PATCH] Fixed handling of the close state in case it's already closed. --- .../main/java/org/eclipse/jetty/util/IteratingCallback.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java b/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java index 960c3eb9749..b11a18882df 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/IteratingCallback.java @@ -382,6 +382,10 @@ public abstract class IteratingCallback implements Callback return; break; } + case CLOSED: + { + return; + } default: { if (_state.compareAndSet(current, State.CLOSED))