//清数据 public void Dispose() { disposed = true; EventSystem.RemoveEvent(EventID.SOKECT_CONNECT_RESULT, OnEventSocketConnectOK); //MsgCallManager.RemoveCallback(ProtoID.SC_LOGIN_RECONNECTION_REPLY, ReconnectSuccess); if (heartBeatCheck != null) { heartBeatCheck.Dispose(); } heartBeatCheck = null; if (clientSocket != null) { clientSocket.Dispose(); } clientSocket = null; if (clientProtoMsg != null) { clientProtoMsg.Dispose(); } clientProtoMsg = null; // if (msgCacheMgr != null) // msgCacheMgr.Dispose (); // msgCacheMgr = null; if (msgVerifyMgr != null) { msgVerifyMgr.Dispose(); } msgVerifyMgr = null; }