Skip to content

Commit

Permalink
Fixed reconnection on a group listener
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Jul 1, 2024
1 parent f43cfff commit 9e659d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtransmit/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ shared_sock_t create_connection(const vector<UriParser>& parsed_urls, shared_soc
listening_sock = make_shared<socket::srt_group>(parsed_urls);
socket::srt_group* s = dynamic_cast<socket::srt_group*>(listening_sock.get());
const bool accept = s->mode() == socket::srt_group::LISTENER;
if (accept) {
if (accept && !is_listening) {
s->listen();
}
shared_sock_t connection = accept ? s->accept() : s->connect();
Expand Down

0 comments on commit 9e659d0

Please sign in to comment.