cwIoPresetSelApp.cpp : Remove extra sleep time from main loop, because cwWebSock now blocks inside io::exec().

This commit is contained in:
kevin 2024-02-24 15:42:31 -05:00
parent 4954e2dabb
commit 1b8c9f9b6c

View File

@ -3647,17 +3647,17 @@ cw::rc_t cw::preset_sel_app::main( const object_t* cfg, int argc, const char* ar
// execute the io framework
while( !io::isShuttingDown(app.ioH))
{
time::spec_t t0;
time::get(t0);
//time::spec_t t0;
//time::get(t0);
// This call may block on the websocket handle.
io::exec(app.ioH);
unsigned dMs = time::elapsedMs(t0);
if( dMs < 50 && app.psNextFrag == nullptr )
{
sleepMs( 50-dMs );
}
//unsigned dMs = time::elapsedMs(t0);
//if( dMs < 50 && app.psNextFrag == nullptr )
//{
// sleepMs( 50-dMs );
//}
}