diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-26 16:50:40 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-26 18:21:23 -0800 |
| commit | 3f3eb3500ddb33bc660ea64092c4402a59d08988 (patch) | |
| tree | 5e6998b17326bf3e8249c79c85649bccfa933dd6 /src/sp/protocol/pipeline0/push.c | |
| parent | be0cd10fb34241f233c8bc6d0d0f5897afd9f3dc (diff) | |
| download | nng-3f3eb3500ddb33bc660ea64092c4402a59d08988.tar.gz nng-3f3eb3500ddb33bc660ea64092c4402a59d08988.tar.bz2 nng-3f3eb3500ddb33bc660ea64092c4402a59d08988.zip | |
pipeline: use nni_aio_start
Diffstat (limited to 'src/sp/protocol/pipeline0/push.c')
| -rw-r--r-- | src/sp/protocol/pipeline0/push.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sp/protocol/pipeline0/push.c b/src/sp/protocol/pipeline0/push.c index f99dddc3..bac3f984 100644 --- a/src/sp/protocol/pipeline0/push.c +++ b/src/sp/protocol/pipeline0/push.c @@ -269,11 +269,6 @@ push0_sock_send(void *arg, nni_aio *aio) push0_pipe *p; nni_msg *m; size_t l; - int rv; - - if (nni_aio_begin(aio) != 0) { - return; - } m = nni_aio_get_msg(aio); l = nni_msg_len(m); @@ -312,8 +307,7 @@ push0_sock_send(void *arg, nni_aio *aio) return; } - if ((rv = nni_aio_schedule(aio, push0_cancel, s)) != 0) { - nni_aio_finish_error(aio, rv); + if (!nni_aio_start(aio, push0_cancel, s)) { nni_mtx_unlock(&s->m); return; } |
