aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-07-22 00:02:23 -0700
committerGarrett D'Amore <garrett@damore.org>2021-07-22 00:02:23 -0700
commitd62111974d72ec41d3b736d7e7767e9e8e7bae88 (patch)
tree7df36a7d6eef99e5008e4b92f5a0778b176747fb /src/core
parent70f84c85cd5fd194519300e3c88b4164d2e2d29c (diff)
downloadnng-d62111974d72ec41d3b736d7e7767e9e8e7bae88.tar.gz
nng-d62111974d72ec41d3b736d7e7767e9e8e7bae88.tar.bz2
nng-d62111974d72ec41d3b736d7e7767e9e8e7bae88.zip
fixes #1475 nni_aio_begin should not dispatch task on stopped aio
Diffstat (limited to 'src/core')
-rw-r--r--src/core/aio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/aio.c b/src/core/aio.c
index 25c34391..b86be253 100644
--- a/src/core/aio.c
+++ b/src/core/aio.c
@@ -1,5 +1,5 @@
//
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -353,7 +353,6 @@ nni_aio_begin(nni_aio *aio)
aio->a_expire_ok = false;
nni_mtx_unlock(&eq->eq_mtx);
- nni_task_dispatch(&aio->a_task);
return (NNG_ECANCELED);
}
nni_task_prep(&aio->a_task);