diff options
author | aunsane <aunsane@gmail.com> | 2017-09-30 18:59:30 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-09-30 18:59:30 +0300 |
commit | d13856b6238720bea05a5bf4e14816262ff09c03 (patch) | |
tree | 0e6b678dc82cc012938f2f9fef0b3cb8ef783704 /protocols | |
parent | d788cb0a769541997b154736ab7682d3f7cbfe8e (diff) |
Tox: zero sized profile when it creates in options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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);
|