Skip to content

Commit 4bf1449

Browse files
committed
Added payload size check if publish is extended as will
1 parent d2b4aeb commit 4bf1449

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/hivemq/client/internal/mqtt/message/publish/MqttPublishBuilder.java

+2
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ private static abstract class WillBase<B extends WillBase<B>> extends MqttPublis
262262
super(publishBuilder);
263263
if (publishBuilder instanceof WillBase) {
264264
delayInterval = ((WillBase<?>) publishBuilder).delayInterval;
265+
} else {
266+
payload(payload); // check payload size restriction
265267
}
266268
}
267269

0 commit comments

Comments
 (0)