public void close(int closeCode, String closeMessage) throws IOException, TimeoutException { try { delegate.close(closeCode, closeMessage); } finally { this.connection.unregisterChannel(this); } }
public void close() throws IOException, TimeoutException { try { delegate.close(); } finally { this.connection.unregisterChannel(this); } }