diff options
Diffstat (limited to 'protocols/Tox/src/tox_account.cpp')
-rw-r--r-- | protocols/Tox/src/tox_account.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp index d57b7faf2c..9e74f07a17 100644 --- a/protocols/Tox/src/tox_account.cpp +++ b/protocols/Tox/src/tox_account.cpp @@ -128,9 +128,11 @@ void CToxProto::DoBootstrap() void CToxProto::DoTox()
{
- mir_cslock lck(toxLock);
-
- tox_do(tox);
+ {
+ mir_cslock lck(toxLock);
+ tox_do(tox);
+ }
+ PulseEvent(hToxEvent);
uint32_t interval = tox_do_interval(tox);
Sleep(interval);
}
|