Skip to content

Commit

Permalink
* FIX [mqtt_client] fix thread sanitizer complain
Browse files Browse the repository at this point in the history
  • Loading branch information
JaylinYu committed Apr 30, 2023
1 parent 4516526 commit 6852a62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mqtt/protocol/mqtt/mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,16 +1001,17 @@ mqtt_ctx_send(void *arg, nni_aio *aio)
static void
mqtt_ctx_recv(void *arg, nni_aio *aio)
{
mqtt_ctx_t * ctx = arg;
mqtt_ctx_t *ctx = arg;
mqtt_sock_t *s = ctx->mqtt_sock;
mqtt_pipe_t *p = s->mqtt_pipe;
mqtt_pipe_t *p;
nni_msg *msg = NULL;

if (nni_aio_begin(aio) != 0) {
return;
}

nni_mtx_lock(&s->mtx);
p = s->mqtt_pipe;
if (p == NULL) {
goto wait;
}
Expand Down

0 comments on commit 6852a62

Please sign in to comment.