XUDP practice: MUST check the flag first & Add more comments

This commit is contained in:
RPRX authored and GitHub committed 2023-04-16 21:15:27 +00:00
1 parent 9f8e9e8e64
commit b4c1a56026
3 files changed
+14 -11

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ func (w *ServerWorker) handleStatusNew(ctx context.Context, meta *FrameMetadata,
}
}
if meta.GlobalID != [8]byte{} {
if meta.GlobalID != [8]byte{} { // MUST ignore empty Global ID
mb, err := NewPacketReader(reader, &meta.Target).ReadMultiBuffer()
if err != nil {
return err