diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-01-07 11:42:07 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-01-07 11:42:07 +0000 |
commit | b37e0bd58a5969b42f6feaf073afcdfe43330b41 (patch) | |
tree | 03b98749a6bf16fa48d4955e54da14548e6105f9 /protocols/Tox/src/tox_proto.cpp | |
parent | 29c30826e448ba305fc7b1a7370043d09cb587f1 (diff) |
Tox:
- fix own status showing on contact's client
- some sync fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.cpp')
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 2f4e749412..89be71ab18 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -255,6 +255,8 @@ int __cdecl CToxProto::SetAwayMsg(int iStatus, const PROTOCHAR *msg) {
if (IsOnline())
{
+ WaitForSingleObject(hToxEvent, INFINITE);
+
ptrA statusMessage(msg == NULL ? mir_strdup("") : mir_utf8encodeT(msg));
if (tox_set_status_message(tox, (uint8_t*)(char*)statusMessage, min(TOX_MAX_STATUSMESSAGE_LENGTH, strlen(statusMessage))) == TOX_ERROR)
{
|