From 1b8c9f9b6ccc0df4521524770988d08f0cc4099a Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 24 Feb 2024 15:42:31 -0500 Subject: [PATCH] cwIoPresetSelApp.cpp : Remove extra sleep time from main loop, because cwWebSock now blocks inside io::exec(). --- cwIoPresetSelApp.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cwIoPresetSelApp.cpp b/cwIoPresetSelApp.cpp index 79adfa5..c25f7e3 100644 --- a/cwIoPresetSelApp.cpp +++ b/cwIoPresetSelApp.cpp @@ -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 ); + //} }