1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(main): Added check sodium_init result

This commit is contained in:
Diadlo 2016-04-14 01:21:31 +03:00
parent 082fb4c056
commit 64a19d3419
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -150,7 +150,11 @@ int main(int argc, char *argv[])
IPC& ipc = IPC::getInstance();
#endif
sodium_init(); // For the auto-updater
if (sodium_init() < 0) // For the auto-updater
{
qCritical() << "Can't init libsodium";
return EXIT_FAILURE;
}
#ifdef LOG_TO_FILE
QString logFileDir = Settings::getInstance().getAppCacheDirPath();