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

Commit aa8f907

Browse files
committed
Revert "fix: correct length again"
This reverts commit 52c5743.
1 parent b719546 commit aa8f907

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(_expectResponse.Length - 1) As Byte
45-
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length - 1))
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)