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/dialer.c | |
| 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/dialer.c')
| -rw-r--r-- | src/core/dialer.c | 4 |
1 files changed, 1 insertions, 3 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 * |
