Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

catch more exceptions

orbiteraca973e2d92d
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));