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:
parent
082fb4c056
commit
64a19d3419
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user