[Modify] Polish it

This commit is contained in:
sta 2020-11-20 19:35:01 +09:00
parent fb544cad41
commit 128d70a294

View File

@ -548,12 +548,15 @@ namespace WebSocketSharp.Net
public void BeginReadRequest ()
{
try {
_timeoutCanceled.Add (_reuses, false);
_timer.Change (_timeout, Timeout.Infinite);
try {
_stream.BeginRead (_buffer, 0, _bufferLength, onRead, this);
}
catch {
// TODO: Logging.
close ();
}
}