fix non closing client response

This commit is contained in:
Sebastian Sdorra
2012-10-29 16:18:44 +01:00
parent 0b9d4908f4
commit 28b8e2c13e

View File

@@ -119,7 +119,7 @@ public class ClientUtil
{
logger.warn("request failed, response code {} returned", sc);
}
sendException(response, sc);
}
}
@@ -132,7 +132,7 @@ public class ClientUtil
*/
public static void close(ClientResponse response)
{
if (response == null)
if (response != null)
{
response.close();
}