diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-21 16:53:28 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-21 16:54:26 -0800 |
| commit | 22058ccca9f1573b7deb263dc7a8dc3e7d5b76c2 (patch) | |
| tree | ff95653674691c9cbecd56339db2ddfd2353fe15 /src/platform | |
| parent | df8a6718208e6d9be662804f633d4644e2ce83e9 (diff) | |
| download | nng-22058ccca9f1573b7deb263dc7a8dc3e7d5b76c2.tar.gz nng-22058ccca9f1573b7deb263dc7a8dc3e7d5b76c2.tar.bz2 nng-22058ccca9f1573b7deb263dc7a8dc3e7d5b76c2.zip | |
posix udp: stop the PFD explicitly before finalizing
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/posix/posix_udp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/posix/posix_udp.c b/src/platform/posix/posix_udp.c index 69535aa4..1e2f6df9 100644 --- a/src/platform/posix/posix_udp.c +++ b/src/platform/posix/posix_udp.c @@ -258,6 +258,7 @@ nni_plat_udp_close(nni_plat_udp *udp) nni_posix_udp_doclose(udp); nni_mtx_unlock(&udp->udp_mtx); + nni_posix_pfd_stop(&udp->udp_pfd); nni_posix_pfd_fini(&udp->udp_pfd); (void) close(udp->udp_fd); nni_mtx_fini(&udp->udp_mtx); |
