diff --git a/EXE_Redis.cpp b/EXE_Redis.cpp index 7535f78..7d88629 100644 --- a/EXE_Redis.cpp +++ b/EXE_Redis.cpp @@ -443,6 +443,8 @@ RedisEventLoop( redisAsyncContext* ctx, bool bIsPub) if ( FD_ISSET( sock, &wfds)) redisAsyncHandleWrite( ctx) ; } + // Evito saturazione CPU + this_thread::sleep_for( chrono::milliseconds( 10)) ; } // Reset del timeOut ad ogni ciclo