public void EndClientUdp() { try { isRun = false; if (sendEndPort != null) { UdpManager.Instance.CloseUdpClient(); sendClient = null; sendEndPort = null; } delegate_analyze_message = null; } catch (Exception ex) { LogManage.Instance.AddLog("udp连接关闭异常:" + ex.Message); } }
public void EndClientUdp() { try { isRun = false; isRecv = false; // if (sendEndPort != null) { // UdpManager.Instance.CloseUdpClient(); // sendClient = null; // sendEndPort = null; // } UdpManager.Instance.CloseUdpClient(); sendClient = null; delegate_analyze_message = null; } catch (Exception ex) { Debug.Log("udp连接关闭异常:" + ex.Message); } }