Skip to content

Commit

Permalink
Changed to 10 consecutive underruns before exiting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Landberg committed Nov 7, 2016
1 parent bf87db1 commit 7c2d6f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/OutputUHD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,17 +784,17 @@ void UHDWorker::handle_frame(const struct UHDWorkerFrameData *frame)

//boost::this_thread::sleep(boost::posix_time::milliseconds(100));
process_extra_frame = true;
if(++num_consecutive_underflow_msgs > 20)
if(++num_consecutive_underflow_msgs > 10)
{
num_consecutive_underflow_msgs = 0;
//boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
throw std::runtime_error("Too many consecutive underruns. Indicates unspecified internal problem, exiting...");
}
}
else
{
num_consecutive_underflow_msgs = 0;
}
else
{
num_consecutive_underflow_msgs = 0;
}
num_underflows = 0;
num_late_packets = 0;

Expand Down

0 comments on commit 7c2d6f1

Please sign in to comment.