@Override public void close() throws IOException { synchronized (channel) { if (channel.isOpen()) { channel.close(); } else { super.close(); } channel.status = SocketChannelImpl.SOCKET_STATUS_CLOSED; } }
} catch (ConnectException e) { if (isOpen()) { close(); finished = true;
} else { if (isOpen()) { close(); finished = true;
@Override public void close() throws IOException { synchronized (channel) { if (channel.isOpen()) { channel.close(); } else { super.close(); } channel.status = SocketChannelImpl.SOCKET_STATUS_CLOSED; } }
@Override public void close() throws IOException { synchronized (channel) { if (channel.isOpen()) { channel.close(); } else { super.close(); } channel.status = SocketChannelImpl.SOCKET_STATUS_CLOSED; } }
@Override public void close() throws IOException { synchronized (channel) { if (channel.isOpen()) { channel.close(); } else { super.close(); } channel.status = SocketChannelImpl.SOCKET_STATUS_CLOSED; } }
@Override public void close() throws IOException { synchronized (channel) { if (channel.isOpen()) { channel.close(); } else { super.close(); } channel.status = SocketChannelImpl.SOCKET_STATUS_CLOSED; } }
@Override public void close() throws IOException { synchronized (channel) { if (channel.isOpen()) { channel.close(); } else { super.close(); } channel.status = SocketChannelImpl.SOCKET_STATUS_CLOSED; } }
@Override public void close() throws IOException { synchronized (channel) { if (channel.isOpen()) { channel.close(); } else { super.close(); } channel.status = SocketChannelImpl.SOCKET_STATUS_CLOSED; } }
} catch (ConnectException e) { if (isOpen()) { close(); finished = true;
} catch (ConnectException e) { if (isOpen()) { close(); finished = true;
} catch (ConnectException e) { if (isOpen()) { close(); finished = true;
} catch (ConnectException e) { if (isOpen()) { close(); finished = true;
} catch (ConnectException e) { if (isOpen()) { close(); finished = true;
} catch (ConnectException e) { if (isOpen()) { close(); finished = true;
} else { if (isOpen()) { close(); finished = true;
} else { if (isOpen()) { close(); finished = true;
} else { if (isOpen()) { close(); finished = true;
} else { if (isOpen()) { close(); finished = true;
} else { if (isOpen()) { close(); finished = true;