From c732d8d616f738b4ebecadcc52d5f3c88385370c Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Tue, 26 Mar 2019 18:17:05 +0100 Subject: [PATCH] [apps] Fixed epoll connection issue. After PR #597. Sender-listener. tar->GetSRTSocket() returns bind socket at the start, but then the accepted socket when connection happens. While the bind socket is still in the srtrwfds list of polled sockets. --- apps/srt-live-transmit.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/srt-live-transmit.cpp b/apps/srt-live-transmit.cpp index e4c01cbb8..ac4efc9f1 100644 --- a/apps/srt-live-transmit.cpp +++ b/apps/srt-live-transmit.cpp @@ -429,9 +429,7 @@ int main( int argc, char** argv ) } else if (tar && tar->GetSRTSocket() != s) { - cerr << "Unexpected socket poll: " << s; - doabort = true; - break; + continue; } const char * dirstring = (issource)? "source" : "target";