mirror of
https://github.com/fairwaves/UHD-Fairwaves.git
synced 2025-10-23 07:42:00 +00:00
umtrx: max timeout for tx async handler flush
This commit is contained in:
@@ -404,7 +404,12 @@ static void handle_tx_async_msgs(
|
||||
}
|
||||
|
||||
stop_flow_control();
|
||||
while (not xport->get_recv_buff()){};//flush after fc off
|
||||
//flush after fc off, max time of 1s
|
||||
size_t i = 0;
|
||||
while (not xport->get_recv_buff(0.01))
|
||||
{
|
||||
if (i++ > 100) break;
|
||||
}
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Reference in New Issue
Block a user