aboutsummaryrefslogtreecommitdiff
path: root/src/core/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stream.c')
-rw-r--r--src/core/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/stream.c b/src/core/stream.c
index 16e11eca..2c7a9ff3 100644
--- a/src/core/stream.c
+++ b/src/core/stream.c
@@ -140,12 +140,14 @@ nng_stream_free(nng_stream *s)
void
nng_stream_send(nng_stream *s, nng_aio *aio)
{
+ nni_aio_reset(aio);
s->s_send(s, aio);
}
void
nng_stream_recv(nng_stream *s, nng_aio *aio)
{
+ nni_aio_reset(aio);
s->s_recv(s, aio);
}