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

Commit

Permalink
Revert "Revert "fix: correct length again""
Browse files Browse the repository at this point in the history
This reverts commit 69bd6d4.
  • Loading branch information
CCXXXI committed Jul 13, 2022
1 parent 3d05073 commit 5cea6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TcpClient.vb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Public Class TcpClient
Public Function Report() As Boolean
_networkStream.Write(_report, 0, _report.Length)

Dim bytes(_expectResponse.Length) As Byte
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length))
Dim bytes(_expectResponse.Length - 1) As Byte
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length - 1))

Return bytes.SequenceEqual(_expectResponse)
End Function
Expand Down

0 comments on commit 5cea6c4

Please sign in to comment.