chiark / gitweb /
lib/uaudio-rtp.c: Squidge up the socket-closing code.
[disorder] / lib / uaudio-rtp.c
index 2efd910b506d2cdbd4193cc5d872db02dcee34b4..825018e62aba7ebab266654cae30a1c5a5d10897 100644 (file)
@@ -448,12 +448,8 @@ static void rtp_start(uaudio_callback *callback,
 
 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) {