mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 11:55:00 +00:00
added thread.sleep to prevenet console flood
This commit is contained in:
@@ -395,6 +395,8 @@ void CapnSend()
|
|||||||
if (frame.empty())
|
if (frame.empty())
|
||||||
{
|
{
|
||||||
cerr << "Error: Could not capture image" << endl;
|
cerr << "Error: Could not capture image" << endl;
|
||||||
|
std::this_thread::sleep_for(std::chrono::seconds(1)); // Wait before retrying
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user