From 5439e13fa22c6bfcd39ff60ed0d416a7447550a7 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sat, 27 Feb 2016 13:02:08 +0000 Subject: Prevent zero Sleep() interval in Tox thread. git-svn-id: http://svn.miranda-ng.org/main/trunk@16359 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_thread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/protocols/Tox/src/tox_thread.h b/protocols/Tox/src/tox_thread.h index 6b1a013398..b476f54686 100644 --- a/protocols/Tox/src/tox_thread.h +++ b/protocols/Tox/src/tox_thread.h @@ -23,6 +23,7 @@ public: // toxav_iterate(toxAV); } uint32_t interval = tox_iteration_interval(tox); + interval ++; /* Prevent zero sleep interval. */ Sleep(interval); } -- cgit v1.2.3