From 1994816c4443769d728fdb08065d9945d8360c57 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 23 May 2024 16:52:28 +0200 Subject: [PATCH] 10ms --- example/client.example.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/client.example.cpp b/example/client.example.cpp index e9d115f..028a1f9 100644 --- a/example/client.example.cpp +++ b/example/client.example.cpp @@ -28,7 +28,7 @@ void userInputHandler(const std::shared_ptr& client) { struct timeval timeout; timeout.tv_sec = 0; - timeout.tv_usec = 1000000; // 100 milliseconds + timeout.tv_usec = 100000; // 10 milliseconds int result = select(STDIN_FILENO + 1, &read_fds, nullptr, nullptr, &timeout); @@ -62,7 +62,6 @@ int main(int argc, char* argv[]) { client->start(); - // Start the user input handling thread std::thread inputThread; if (!loggerMode) {