]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Remove a change that proved unnecessary to replay a write() with a non-blocking write().
authorMike Brady <mikebrady@eircom.net>
Wed, 27 Feb 2019 11:58:03 +0000 (11:58 +0000)
committerMike Brady <mikebrady@eircom.net>
Wed, 27 Feb 2019 11:58:03 +0000 (11:58 +0000)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index 3f27a98240fd92c2ee79404ddf0e312ef88e4f43..5b6748f1a45ed8de909f183108a311be643702ed 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -779,7 +779,7 @@ int msg_write_response(int fd, rtsp_message *resp) {
     debug(1, "Attempted to write overlong RTSP packet 3");
     return -3;
   }
-  ssize_t reply = non_blocking_write_with_timeout(fd, pkt, p - pkt, 3000); // wait three seconds (3,000 milliseconds) for it to become available
+  ssize_t reply = write(fd, pkt, p - pkt);
   if (reply == -1) {
     char errorstring[1024];
     strerror_r(errno, (char *)errorstring, sizeof(errorstring));