Skip to content

Commit 69ba2e3

Browse files
committed
#557 Incorrect default retain value in a will options constructor
1 parent 55833eb commit 69ba2e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/mqtt/will_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class will_options
157157
* @param props MQTT v5 properties for the will message.
158158
*/
159159
will_options(
160-
string_ref top, const string& payload, int qos = DFLT_QOS, bool retained = DFLT_QOS,
160+
string_ref top, const string& payload, int qos = DFLT_QOS, bool retained = DFLT_RETAINED,
161161
const properties& props = properties()
162162
);
163163
/**

0 commit comments

Comments
 (0)