Commits

Sebastian Sdorra  committed 8508f11

fix non closing client response

  • Participants
  • Parent commits b305912

Comments (0)

Files changed (1)

File scm-clients/scm-client-impl/src/main/java/sonia/scm/client/ClientUtil.java

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