From b37e0bd58a5969b42f6feaf073afcdfe43330b41 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 7 Jan 2015 11:42:07 +0000 Subject: 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 --- protocols/Tox/src/tox_proto.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/Tox/src/tox_proto.cpp') 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) { -- cgit v1.2.3