summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2016-02-27 13:02:08 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2016-02-27 13:02:08 +0000
commit5439e13fa22c6bfcd39ff60ed0d416a7447550a7 (patch)
tree4b537960db5654b37db03a7fa7d9e7ef660fc8a6
parent04a2e2dcdd47b4cd68c73a23e25d4669b5f0d75e (diff)
Prevent zero Sleep() interval in Tox thread.
git-svn-id: http://svn.miranda-ng.org/main/trunk@16359 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Tox/src/tox_thread.h1
1 files changed, 1 insertions, 0 deletions
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);
}