Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
slight addition to the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily Karyaev committed Sep 24, 2012
1 parent d2befa3 commit e2c1db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/main/java/com/ecwid/mailchimp/MailChimpAPIConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,4 @@ public interface MailChimpAPIConnection extends Closeable {
* or if the service point response was unsuccessful (>= 300 status code)
*/
public String post(String url, String payload) throws IOException;

/**
* Release resources associated with the connection.
*/
@Override
public void close();
}
6 changes: 5 additions & 1 deletion src/main/java/com/ecwid/mailchimp/MailChimpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ private String buildUrl(MailChimpMethod<?> method) throws UnsupportedEncodingExc
*/
@Override
public void close() {
connection.close();
try {
connection.close();
} catch(IOException e) {
log.log(Level.WARNING, "Could not close connection", e);
}
}
}

0 comments on commit e2c1db4

Please sign in to comment.