internal void Detach() { if (m_ClientSocket == null) { return; } CClientSocket cs = m_ClientSocket; m_ClientSocket = null; cs.Detach(this); }
public void Dispose() { lock (m_cs) { CleanCallbacks(); if (m_ClientSocket != null) { m_ClientSocket.Detach(this); m_ClientSocket = null; } } }