chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4285d0c
)
lib/uaudio-rtp.c: Squidge up the socket-closing code.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 4 May 2020 18:30:39 +0000
(19:30 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 5 May 2020 22:18:28 +0000
(23:18 +0100)
I plan to add another one, and the commonality in the code gets lost if
it's written out vertically.
lib/uaudio-rtp.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/uaudio-rtp.c
b/lib/uaudio-rtp.c
index 2efd910b506d2cdbd4193cc5d872db02dcee34b4..825018e62aba7ebab266654cae30a1c5a5d10897 100644
(file)
--- a/
lib/uaudio-rtp.c
+++ b/
lib/uaudio-rtp.c
@@
-448,12
+448,8
@@
static void rtp_start(uaudio_callback *callback,
static void rtp_stop(void) {
uaudio_thread_stop();
static void rtp_stop(void) {
uaudio_thread_stop();
- close(rtp_fd);
- rtp_fd = -1;
- if(rtp_fd6 >= 0) {
- close(rtp_fd6);
- rtp_fd6 = -1;
- }
+ close(rtp_fd); rtp_fd = -1;
+ if(rtp_fd6 >= 0) { close(rtp_fd6); rtp_fd6 = -1; }
}
static void rtp_configure(void) {
}
static void rtp_configure(void) {