Browse Source

fix(main): Added check sodium_init result

pull/3162/head
Diadlo 10 years ago
parent
commit
64a19d3419
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 6
      src/main.cpp

6
src/main.cpp

@ -150,7 +150,11 @@ int main(int argc, char *argv[]) @@ -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…
Cancel
Save