aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/reqrep0/rep_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp/protocol/reqrep0/rep_test.c')
-rw-r--r--src/sp/protocol/reqrep0/rep_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sp/protocol/reqrep0/rep_test.c b/src/sp/protocol/reqrep0/rep_test.c
index 6ca8fbca..579f795c 100644
--- a/src/sp/protocol/reqrep0/rep_test.c
+++ b/src/sp/protocol/reqrep0/rep_test.c
@@ -164,6 +164,7 @@ test_rep_double_recv(void)
nng_aio_wait(aio2);
NUTS_FAIL(nng_aio_result(aio2), NNG_ESTATE);
NUTS_CLOSE(s1);
+ nng_aio_wait(aio1);
NUTS_FAIL(nng_aio_result(aio1), NNG_ECLOSED);
nng_aio_free(aio1);
nng_aio_free(aio2);