public void close() throws IOException { this.closed = true; // Consume the InputStream so that it doesn't linger on the Peer's outgoing socket buffer try { commsSession.getInput().consume(); } finally { commsSession.close(); } }
public void close() throws IOException { this.closed = true; // Consume the InputStream so that it doesn't linger on the Peer's outgoing socket buffer try { commsSession.getInput().consume(); } finally { commsSession.close(); } }