summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-08-22 20:44:47 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-08-22 20:44:47 +0000
commit7dc6db27735529dc0ec8ba505360c98baea77ac3 (patch)
tree8e85759d2d1cc52121d9c391b31ab260e2f2b303 /protocols/Tox
parentc1406f8d7b96d490c571065712a02b0e853e54cf (diff)
Tox: probably fixed hang on fast message sending
git-svn-id: http://svn.miranda-ng.org/main/trunk@10308 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_account.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp
index 7363f69c7c..2b2d2c2837 100644
--- a/protocols/Tox/src/tox_account.cpp
+++ b/protocols/Tox/src/tox_account.cpp
@@ -76,6 +76,8 @@ void CToxProto::DoTox()
{
uint32_t interval = 50;
{
+ mir_cs(tox_lock);
+
tox_do(tox);
interval = tox_do_interval(tox);
}