[Modify] Polish it
This commit is contained in:
parent
ff8311511b
commit
8f0cdb0bb7
@ -243,11 +243,12 @@ namespace WebSocketSharp.Net
|
|||||||
var lsnr = (EndPointListener) asyncResult.AsyncState;
|
var lsnr = (EndPointListener) asyncResult.AsyncState;
|
||||||
|
|
||||||
Socket sock = null;
|
Socket sock = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sock = lsnr._socket.EndAccept (asyncResult);
|
sock = lsnr._socket.EndAccept (asyncResult);
|
||||||
}
|
}
|
||||||
catch (SocketException) {
|
catch (SocketException) {
|
||||||
// TODO: Should log the error code when this class has a logging.
|
// TODO: Logging.
|
||||||
}
|
}
|
||||||
catch (ObjectDisposedException) {
|
catch (ObjectDisposedException) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user