Skip to content

Commit 731ce10

Browse files
committed
Check write byte buffer size
Fixes #1309 (cherry picked from commit 73f0ab8)
1 parent 934b296 commit 731ce10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rabbitmq/client/impl/nio/NioParams.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public int getWriteByteBufferSize() {
180180
* @return this {@link NioParams} instance
181181
*/
182182
public NioParams setWriteByteBufferSize(int writeByteBufferSize) {
183-
if (readByteBufferSize <= 0) {
183+
if (writeByteBufferSize <= 0) {
184184
throw new IllegalArgumentException("Buffer size must be greater than 0");
185185
}
186186
this.writeByteBufferSize = writeByteBufferSize;

0 commit comments

Comments
 (0)