diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-11 07:46:27 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-11 07:49:53 -0800 |
| commit | 90308d8a3651d163c08d4fae3cfda90c5292e812 (patch) | |
| tree | 96688854eba01681b58a411fcd2ae6e4d8bf4d77 /src/core | |
| parent | 7155676c0861b9f85e7a89a66dc1479085b8539b (diff) | |
| download | nng-90308d8a3651d163c08d4fae3cfda90c5292e812.tar.gz nng-90308d8a3651d163c08d4fae3cfda90c5292e812.tar.bz2 nng-90308d8a3651d163c08d4fae3cfda90c5292e812.zip | |
transports: all transports implement stop functions
Add test cases ensuring that the transports implement all
required functionality (entry points are not null).
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/dialer.c | 4 | ||||
| -rw-r--r-- | src/core/listener.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/core/dialer.c b/src/core/dialer.c index 6224ce9b..4b0ad615 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -544,9 +544,7 @@ nni_dialer_stop(nni_dialer *d) d->d_ops.d_close(d->d_data); nni_aio_stop(&d->d_tmo_aio); nni_aio_stop(&d->d_con_aio); - if (d->d_ops.d_stop) { - d->d_ops.d_stop(d->d_data); - } + d->d_ops.d_stop(d->d_data); } nni_sock * diff --git a/src/core/listener.c b/src/core/listener.c index 1eeaa3cd..28b7bc6f 100644 --- a/src/core/listener.c +++ b/src/core/listener.c @@ -527,9 +527,7 @@ nni_listener_stop(nni_listener *l) l->l_ops.l_close(l->l_data); nni_aio_stop(&l->l_tmo_aio); nni_aio_stop(&l->l_acc_aio); - if (l->l_ops.l_stop) { - l->l_ops.l_stop(l->l_data); - } + l->l_ops.l_stop(l->l_data); } nni_sock * |
