check close actively

This commit is contained in:
clowwindy
2014-11-12 21:27:27 +08:00
parent a65cdd913d
commit ef050cd3c3
2 changed files with 71 additions and 7 deletions
+5 -2
View File
@@ -87,9 +87,12 @@ namespace Shadowsocks.Controller
conn.BeginReceive(new byte[1024], 0, 1024, 0,
new AsyncCallback(ReceiveCallback), conn);
}
catch (ObjectDisposedException)
{
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e);
}
}
@@ -152,7 +155,7 @@ Connection: Close
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e);
conn.Close();
}
}