Skip to content

Commit

Permalink
fix duplicate streamid's
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymansfield committed Jan 12, 2025
1 parent bf6ad36 commit 967dda8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class QuicStreamIdGenerator {
nextUnidirectionalStreamId = server ? 3 : 2;
}

long nextStreamId(boolean bidirectional) {
synchronized long nextStreamId(boolean bidirectional) {
if (bidirectional) {
long stream = nextBidirectionalStreamId;
nextBidirectionalStreamId += 4;
Expand Down

0 comments on commit 967dda8

Please sign in to comment.