@Override public void close() { if (debug) OLogManager.instance() .info( this, "%s - Closing socket...", socket != null ? " null possible previous close" : socket.getRemoteSocketAddress()); try { if (in != null) { in.close(); // in = null; } } catch (IOException e) { OLogManager.instance().debug(this, "Error during closing of input stream", e); } try { if (out != null) { out.close(); // out = null; } } catch (IOException e) { OLogManager.instance().debug(this, "Error during closing of output stream", e); } super.close(); }
@Override public void close() { if (debug) OLogManager.instance().info(this, "%s - Closing socket...", socket.getRemoteSocketAddress()); try { if (in != null) in.close(); } catch (IOException e) { } try { if (out != null) out.close(); } catch (IOException e) { } super.close(); }