mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fix non closing client response
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user