diff --git a/wrappers/cpp/libfreenect.hpp b/wrappers/cpp/libfreenect.hpp index 59450f8b..5703e30b 100644 --- a/wrappers/cpp/libfreenect.hpp +++ b/wrappers/cpp/libfreenect.hpp @@ -218,7 +218,8 @@ namespace Freenect { // Do not call directly, thread runs here void operator()() { while (!m_stop) { - int res = freenect_process_events(m_ctx); + static timeval timeout = { 1, 0 }; + int res = freenect_process_events_timeout(m_ctx, &timeout); if (res < 0) { // libusb signals an error has occurred