From d62111974d72ec41d3b736d7e7767e9e8e7bae88 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 22 Jul 2021 00:02:23 -0700 Subject: fixes #1475 nni_aio_begin should not dispatch task on stopped aio --- src/core/aio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core') 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. +// Copyright 2021 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // 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); -- cgit v1.2.3-70-g09d2