From aca973e2d92d5125346c655b64c1256353854389 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 20 Feb 2009 23:24:49 +0000 Subject: [PATCH] catch more exceptions git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5627 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpClient.java | 4 ++++ 1 file changed, 4 insertions(+) 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));