diff options
Diffstat (limited to 'src/supplemental/http')
| -rw-r--r-- | src/supplemental/http/http_client.c | 2 | ||||
| -rw-r--r-- | src/supplemental/http/http_server.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/supplemental/http/http_client.c b/src/supplemental/http/http_client.c index af5bc717..03125abf 100644 --- a/src/supplemental/http/http_client.c +++ b/src/supplemental/http/http_client.c @@ -89,6 +89,8 @@ http_dial_cb(void *arg) void nni_http_client_fini(nni_http_client *c) { + nni_aio_stop(c->aio); + nng_stream_dialer_stop(c->dialer); nni_aio_free(c->aio); nng_stream_dialer_free(c->dialer); nni_mtx_fini(&c->mtx); diff --git a/src/supplemental/http/http_server.c b/src/supplemental/http/http_server.c index 2240492f..0d5d9cb0 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -895,6 +895,7 @@ http_server_fini(nni_http_server *s) http_error *epage; nni_aio_stop(s->accaio); + nng_stream_listener_stop(s->listener); nni_mtx_lock(&s->mtx); NNI_ASSERT(nni_list_empty(&s->conns)); |
