public void HandleClose() { if (m_nStatus == 0) { return; } m_nStatus = 0; FFNet.GetTaskQueue().Post(() => { if (m_oSocket == null) { return; } try { m_oSocket.Close(); m_oSocket = null; m_oBuffSending.Clear(); m_oSocketCtrl.HandleBroken(this); } catch (Exception ex) { FFLog.Trace("scoket: HandleClose Error " + ex.Message); } }); }
public void HandleClose() { if (m_nStatus == 0) { return; } m_nStatus = 0; FFNet.GetTaskQueue().Post(() => { if (m_oSocket == null) { return; } m_oSocket.Close(); m_oSocket = null; m_oBuffSending.Clear(); m_oSocketCtrl.HandleBroken(this); }); }