From d13856b6238720bea05a5bf4e14816262ff09c03 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 30 Sep 2017 18:59:30 +0300 Subject: Tox: zero sized profile when it creates in options --- protocols/Tox/src/tox_profile.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'protocols') diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index b74ff2bd07..885769f154 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -92,9 +92,6 @@ void CToxProto::SaveToxProfile(Tox *tox) { mir_cslock locker(profileLock); - if (!toxThread) - return; - size_t size = tox_get_savedata_size(tox); uint8_t *data = (uint8_t*)mir_calloc(size + TOX_PASS_ENCRYPTION_EXTRA_LENGTH); tox_get_savedata(tox, data); -- cgit v1.2.3