Skip to content

Commit

Permalink
Added payload size check if publish is extended as will
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Dec 15, 2019
1 parent d2b4aeb commit 4bf1449
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ private static abstract class WillBase<B extends WillBase<B>> extends MqttPublis
super(publishBuilder);
if (publishBuilder instanceof WillBase) {
delayInterval = ((WillBase<?>) publishBuilder).delayInterval;
} else {
payload(payload); // check payload size restriction
}
}

Expand Down

0 comments on commit 4bf1449

Please sign in to comment.