From c84f3dd058cb3ea5f6bf4c3f0a96145ee3088dba Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Tue, 2 Feb 2016 16:39:23 +0000 Subject: [PATCH] Allow at least 500 ms before starting a new rtsp conversation to allow previous one to die, if any. --- rtsp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rtsp.c b/rtsp.c index 055fc6cd..c3f00730 100644 --- 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);