Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Commit d8382f1

Browse files
committed
fix: correct length
1 parent 69573d6 commit d8382f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TcpClient.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Public Class TcpClient
4141
Public Function Report() As Boolean
4242
_networkStream.Write(_report, 0, _report.Length)
4343

44-
Dim bytes(_tcpClient.ReceiveBufferSize) As Byte
45-
_networkStream.Read(bytes, 0, CInt(_tcpClient.ReceiveBufferSize))
44+
Dim bytes(_expectResponse.Length) As Byte
45+
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length))
4646

4747
Return bytes.SequenceEqual(_expectResponse)
4848
End Function

0 commit comments

Comments
 (0)