Skip to content

Commit

Permalink
* TRy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JaylinYu committed May 6, 2023
1 parent 41a9e4d commit d15d612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/mqtt/protocol/mqtt/mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ mqtt_pipe_recv_msgq_putq(mqtt_pipe_t *p, nni_msg *msg)
// return;
// }
// nni_lmq_put(&p->recv_messages, msg);
packet_type_t packet_type = nni_mqtt_msg_get_packet_type(msg);
if (packet_type == NNG_MQTT_PUBLISH || packet_type == NNG_MQTT_CONNACK)
uint8_t type = nni_msg_get_type(msg);
if (type == CMD_PUBLISH || type == CMD_CONNACK)
conn_param_free(nni_msg_get_conn_param(msg));
nni_msg_free(msg);
}
Expand Down
5 changes: 2 additions & 3 deletions src/mqtt/protocol/mqtt/mqttv5_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,8 @@ static inline void
mqtt_pipe_recv_msgq_putq(mqtt_pipe_t *p, nni_msg *msg)
{
if (0 != nni_lmq_put(&p->recv_messages, msg)) {
packet_type_t packet_type = nni_mqtt_msg_get_packet_type(msg);
if (packet_type == NNG_MQTT_PUBLISH ||
packet_type == NNG_MQTT_CONNACK)
uint8_t type = nni_msg_get_type(msg);
if (type == CMD_PUBLISH || type == CMD_CONNACK)
conn_param_free(nni_msg_get_conn_param(msg));
nni_msg_free(msg);
}
Expand Down

0 comments on commit d15d612

Please sign in to comment.