We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b3f3a7 commit cfe9c49Copy full SHA for cfe9c49
1 file changed
wrappers/cpp/libfreenect.hpp
@@ -218,7 +218,8 @@ namespace Freenect {
218
// Do not call directly, thread runs here
219
void operator()() {
220
while (!m_stop) {
221
- int res = freenect_process_events(m_ctx);
+ static timeval timeout = { 1, 0 };
222
+ int res = freenect_process_events_timeout(m_ctx, &timeout);
223
if (res < 0)
224
{
225
// libusb signals an error has occurred
0 commit comments