mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mqtt: fix extra byte on SUBSCRIBE
This commit is contained in:
parent
c8fc7a6f37
commit
4e9f433b7e
1 changed files with 0 additions and 4 deletions
|
@ -104,10 +104,6 @@ lws_mqtt_client_send_connect(struct lws *wsi)
|
|||
*p++ = 0;
|
||||
}
|
||||
|
||||
if ((c->conn_flags & ~LMQCFT_CLEAN_START) == 0) {
|
||||
*p++ = 0; /* no properties */
|
||||
break;
|
||||
}
|
||||
if (c->conn_flags & LMQCFT_WILL_FLAG) {
|
||||
if (lws_mqtt_str_is_not_empty(c->will.topic)) {
|
||||
lws_ser_wu16be(p, c->will.topic->len);
|
||||
|
|
Loading…
Add table
Reference in a new issue