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

Commit

Permalink
Revert "fix: correct length again"
Browse files Browse the repository at this point in the history
This reverts commit 52c5743.
  • Loading branch information
CCXXXI committed Jul 13, 2022
1 parent b719546 commit aa8f907
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 - 1) As Byte
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length - 1))
Dim bytes(_expectResponse.Length) As Byte
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length))

Return bytes.SequenceEqual(_expectResponse)
End Function
Expand Down

0 comments on commit aa8f907

Please sign in to comment.