[Modify] Move it

This commit is contained in:
sta 2020-11-14 17:46:31 +09:00
parent 7f856131eb
commit 80921f0dd8

View File

@ -128,6 +128,7 @@ namespace WebSocketSharp.Net
_stream = netStream;
}
_buffer = new byte[_bufferLength];
_localEndPoint = socket.LocalEndPoint;
_remoteEndPoint = socket.RemoteEndPoint;
_sync = new object ();
@ -540,9 +541,6 @@ namespace WebSocketSharp.Net
public void BeginReadRequest ()
{
if (_buffer == null)
_buffer = new byte[_bufferLength];
if (_reuses == 1)
_timeout = 15000;