]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Allow at least 500 ms before starting a new rtsp conversation to allow previous one...
authorMike Brady <mikebrady@eircom.net>
Tue, 2 Feb 2016 16:39:23 +0000 (16:39 +0000)
committerMike Brady <mikebrady@eircom.net>
Tue, 2 Feb 2016 16:39:23 +0000 (16:39 +0000)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index 055fc6cd68a3baf053eb1eee6674abb09938a821..c3f00730db8b98aef8f58ed9e570d9f2277debce 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -1839,6 +1839,7 @@ void rtsp_listen_loop(void) {
       perror("failed to accept connection");
       free(conn);
     } else {
+      usleep(500000);
       pthread_t rtsp_conversation_thread;
       ret = pthread_create(&rtsp_conversation_thread, NULL,
                            rtsp_conversation_thread_func, conn);