Improve stream stalled detection

This commit is contained in:
Patrick Nicolas
2024-03-24 17:24:03 +01:00
parent 94e6014861
commit 2cc267f8d4
2 changed files with 3 additions and 3 deletions
+1 -3
View File
@@ -27,9 +27,7 @@ void scenes::stream::process_packets()
{
try
{
int n = network_session->poll(*this, std::chrono::milliseconds(500));
if (n == 0 && state_ == state::streaming)
state_ = state::stalled;
network_session->poll(*this, std::chrono::milliseconds(500));
}
catch (std::exception & e)
{