Skip to content

fix(LiteNetPeer): get packets count in reliable unordered channel#607

Merged
RevenantX merged 1 commit intoRevenantX:masterfrom
stiefeljackal:fix/get-packets-count-in-reliable-unordered
Apr 16, 2026
Merged

fix(LiteNetPeer): get packets count in reliable unordered channel#607
RevenantX merged 1 commit intoRevenantX:masterfrom
stiefeljackal:fix/get-packets-count-in-reliable-unordered

Conversation

@stiefeljackal
Copy link
Copy Markdown
Contributor

While going through LiteNetLib, I noticed that GetPacketsCountInReliableQueue in LiteNetPeer accepts the argument ordered. Based on the comments, this argument should determine which channel, ReliableOrdered or ReliableUnordered, the number of packets in queue should come from. However, it appears that the count is always coming from the ReliableOrdered channel despite the value passed in for ordered. This PR aims to fix this behavior by returning the packet count for the ReliableUnordered channel if ordered is false.

I also made the argument default to true as well.

@RevenantX
Copy link
Copy Markdown
Owner

better remove default argument to avoid confusing

@stiefeljackal stiefeljackal force-pushed the fix/get-packets-count-in-reliable-unordered branch from 44a8e86 to 329b16c Compare April 16, 2026 12:04
@stiefeljackal
Copy link
Copy Markdown
Contributor Author

better remove default argument to avoid confusing

Sure. The default argument has been removed.

@RevenantX RevenantX merged commit 30bd21f into RevenantX:master Apr 16, 2026
1 check passed
@RevenantX
Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants