summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_contacts.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-02-26 00:41:00 +0300
committeraunsane <aunsane@gmail.com>2017-02-26 01:24:27 +0300
commitb1f71f7bdf6d126d888ce06770a5a26fa422cb15 (patch)
tree9fbff25e67c59f12993be4a1e516d17eec0ec2a9 /protocols/Tox/src/tox_contacts.cpp
parent1b9bdb2ef210ce55b97c988c183a02cfcf101063 (diff)
Tox: attempt to fix for #720
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp5
1 files changed, 2 insertions, 3 deletions
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;
}