diff --git a/src/main.cpp b/src/main.cpp index c2cd3e763..b48623f98 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();