public void disconnect() { if (sockChan != null) { sockChan.close(); } sockChan = null; activeConnection = false; }
public void disconnect() { sockChan.close(); }
public void disconnect() { lock (this) { sockChan.close(); } }
public void disconnect() { if (sockChan != null) { sockChan.close(); } sockChan = null; activeConnection = false; }
public void disconnect() { sockChan.close(); }
public void disconnect() { lock (this) { sockChan.close(); } }