Skip to content

Commit

Permalink
* FIX [mqtt_client] pick correct aio to send in pipe_start
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <jaylin@emqx.io>
  • Loading branch information
JaylinYu committed Nov 14, 2024
1 parent bc09d05 commit 7071d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt/protocol/mqtt/mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ mqtt_pipe_start(void *arg)
if ((aio = nni_list_first(&s->cached_aio)) != NULL) {
nni_list_remove(&s->cached_aio, aio);
nni_pipe_recv(p->pipe, &p->recv_aio);
mqtt_send_msg(c->saio, NULL, s);
mqtt_send_msg(aio, NULL, s);
nni_sleep_aio(s->retry, &p->time_aio);
return (0);
}
Expand Down

0 comments on commit 7071d72

Please sign in to comment.