From b1f71f7bdf6d126d888ce06770a5a26fa422cb15 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sun, 26 Feb 2017 00:41:00 +0300 Subject: Tox: attempt to fix for #720 --- protocols/Tox/src/tox_contacts.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 0f429c80a1..bffa85e193 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -325,8 +325,7 @@ void CToxProto::OnConnectionStatusChanged(Tox*, uint32_t friendNumber, TOX_CONNE return; } - WORD status = proto->GetContactStatus(hContact); - if (status > ID_STATUS_OFFLINE) + if (proto->GetContactStatus(hContact) > ID_STATUS_OFFLINE) return; proto->delSetting(hContact, "Auth"); @@ -342,7 +341,7 @@ void CToxProto::OnConnectionStatusChanged(Tox*, uint32_t friendNumber, TOX_CONNE FILE *hFile = _wfopen(avatarPath, L"rb"); if (!hFile) { - Netlib_Logf(proto->m_hNetlibUser, __FUNCTION__": failed to open avatar file"); + proto->debugLogA(__FUNCTION__": failed to open avatar file"); return; } -- cgit v1.2.3