chiark / gitweb /
lib/uaudio-rtp.c: Fix initial values for socket descriptors.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 4 May 2020 18:26:42 +0000 (19:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 5 May 2020 22:18:28 +0000 (23:18 +0100)
commit4285d0cfe067711ce0614f49d96f61c7c60d5aff
tree0e531dc11077b8290ff67225869cfee5b4b69228
parentd51722011c4a1b3223ae65d67cc5a01ebe6b519a
lib/uaudio-rtp.c: Fix initial values for socket descriptors.

The code in `rtp_stop' checks for the sentinel value -1 when trying to
close sockets.  Without this, it might get (and then ignore!) a spurious
`EBADF' when shutting down.
lib/uaudio-rtp.c