diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-26 14:36:24 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-26 15:57:48 -0800 |
| commit | 35e77bdd02a735da8e7cde7a3be8b9a1fbbf084a (patch) | |
| tree | 9f87e54777ab57f49a628543aa1ef5c7db3ac8dc /src | |
| parent | c8b58f9128dd1e4b9424d79d22f5ae50a8bff54a (diff) | |
| download | nng-35e77bdd02a735da8e7cde7a3be8b9a1fbbf084a.tar.gz nng-35e77bdd02a735da8e7cde7a3be8b9a1fbbf084a.tar.bz2 nng-35e77bdd02a735da8e7cde7a3be8b9a1fbbf084a.zip | |
http: No need to do nni_aio_begin for callbacks
Diffstat (limited to 'src')
| -rw-r--r-- | src/supplemental/http/http_server.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/supplemental/http/http_server.c b/src/supplemental/http/http_server.c index e068ae98..74dd76a3 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -702,11 +702,7 @@ finish: // asynchronously even after it gets removed from the server. nni_atomic_inc(&h->ref); - // Documented that we call this on behalf of the callback. - if (nni_aio_begin(&sc->cbaio) != 0) { - nni_mtx_unlock(&s->mtx); - return; - } + nni_aio_reset(&sc->cbaio); nni_mtx_unlock(&s->mtx); h->cb(&sc->cbaio); |
