diff --git a/source/de/anomic/http/httpClient.java b/source/de/anomic/http/httpClient.java index bc3c351f2..9f5a6c750 100644 --- a/source/de/anomic/http/httpClient.java +++ b/source/de/anomic/http/httpClient.java @@ -446,6 +446,10 @@ public class httpClient { } else { apacheHttpClient.executeMethod(hostConfig, method); } + } catch (final IllegalThreadStateException e) { + // cleanUp statistics + HttpConnectionInfo.removeConnection(generateConInfo(method)); + throw e; } catch (final IOException e) { // cleanUp statistics HttpConnectionInfo.removeConnection(generateConInfo(method));