}
break;
}
+ if (!global_flags.enable_srt) { // Runtime UI toggle.
+ // Perhaps not as good as never listening in the first place,
+ // but much simpler to turn on and off.
+ srt_close(clientsock);
+ continue;
+ }
lock_guard<mutex> lock(hotplug_mutex);
hotplugged_srt_cards.push_back(clientsock);
}