Skip to content

Commit

Permalink
* FIX [exchange_clinet_test] Don't begin aio before sock_send
Browse files Browse the repository at this point in the history
Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
  • Loading branch information
RanMaoyi committed Dec 21, 2023
1 parent 17d746f commit 129c3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt/protocol/exchange/exchange_client_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ client_publish(nng_socket sock, const char *topic, uint32_t key, uint8_t *payloa

nni_aio *aio = NULL;
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_begin(aio);
// nng_aio_begin(aio);

nni_aio_set_prov_data(aio, (void *)key);
nni_aio_set_msg(aio, pubmsg);
Expand Down

0 comments on commit 129c3d2

Please sign in to comment.