错误代码:
if (this.localClient != null)
{
this.localClient.Close();
}
if (this.receiveThread != null)
{
this.receiveThread.Abort();
}
正确写法 先终止线程,然后再关socket
if (this.receiveThread != null)
{
this.receiveThread.Abort();
}
if (this.localClient != null)
{
this.localClient.Close();
}
FR:徐海涛(hunk Xu)
QQ技术交流群:386476712