This commit is contained in:
shoopea 2020-06-14 22:43:37 +02:00
parent 9366524ef6
commit b84c23d6e0

View File

@ -33,6 +33,7 @@ func main() {
n, err = r.Read(b[read:])
logErrorDebug(err, "r.Read")
read += n
logInfoDebug("Waiting for packet, read %d bytes.", read)
if read >= 3 {
break
}
@ -48,6 +49,7 @@ func main() {
n, err = r.Read(b[read:])
logErrorDebug(err, "r.Read")
read += n
logInfoDebug("Waiting for data, read %d/%d bytes.", read, p.PLength)
if read >= int(p.PLength) {
break
}