Skip to content

Commit 6fb4a8a

Browse files
committed
use finish sync
Signed-off-by: jaylin <[email protected]>
1 parent 849e654 commit 6fb4a8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mqtt/protocol/mqtt/mqtt_client.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ mqtt_recv_cb(void *arg)
12271227
ctx->raio = NULL;
12281228
nni_aio_set_msg(user_aio, cached_msg);
12291229
nni_mtx_unlock(&s->mtx);
1230-
nni_aio_finish(user_aio, 0, 0);
1230+
nni_aio_finish_sync(user_aio, 0, 0);
12311231
return;
12321232

12331233
case NNG_MQTT_PUBLISH:
@@ -1257,7 +1257,7 @@ mqtt_recv_cb(void *arg)
12571257
ctx->raio = NULL;
12581258
nni_aio_set_msg(user_aio, msg);
12591259
nni_mtx_unlock(&s->mtx);
1260-
nni_aio_finish(user_aio, 0, 0);
1260+
nni_aio_finish_sync(user_aio, 0, 0);
12611261
return;
12621262
} else {
12631263
packet_id = nni_mqtt_msg_get_publish_packet_id(msg);

0 commit comments

Comments
 (0)