Move OpenSSL probing before crash reporter.

This commit is contained in:
John Preston 2024-04-24 19:12:46 +04:00
parent ef614150d5
commit c16d820b88
6 changed files with 2 additions and 15 deletions

View file

@ -243,14 +243,10 @@ Application::~Application() {
Media::Player::finish(_audio.get()); Media::Player::finish(_audio.get());
style::stopManager(); style::stopManager();
ThirdParty::finish();
Instance = nullptr; Instance = nullptr;
} }
void Application::run() { void Application::run() {
ThirdParty::start();
// Depends on OpenSSL on macOS, so on ThirdParty::start(). // Depends on OpenSSL on macOS, so on ThirdParty::start().
// Depends on notifications settings. // Depends on notifications settings.
_notifications = std::make_unique<Window::Notifications::System>(); _notifications = std::make_unique<Window::Notifications::System>();

View file

@ -385,6 +385,7 @@ int Launcher::exec() {
// Must be started before Sandbox is created. // Must be started before Sandbox is created.
Platform::start(); Platform::start();
ThirdParty::start();
auto result = executeApplication(); auto result = executeApplication();
DEBUG_LOG(("Telegram finished, result: %1").arg(result)); DEBUG_LOG(("Telegram finished, result: %1").arg(result));
@ -400,6 +401,7 @@ int Launcher::exec() {
} }
CrashReports::Finish(); CrashReports::Finish();
ThirdParty::finish();
Platform::finish(); Platform::finish();
Logs::finish(); Logs::finish();

View file

@ -92,8 +92,6 @@ namespace ThirdParty {
FIPS_mode_set(0); FIPS_mode_set(0);
#endif #endif
CONF_modules_unload(1); CONF_modules_unload(1);
Platform::ThirdParty::finish();
} }
} }

View file

@ -755,9 +755,6 @@ namespace ThirdParty {
void start() { void start() {
} }
void finish() {
}
} // namespace ThirdParty } // namespace ThirdParty
} // namespace Platform } // namespace Platform

View file

@ -53,9 +53,6 @@ namespace ThirdParty {
inline void start() { inline void start() {
} }
inline void finish() {
}
} // namespace ThirdParty } // namespace ThirdParty
} // namespace Platform } // namespace Platform

View file

@ -55,9 +55,6 @@ namespace ThirdParty {
void start(); void start();
inline void finish() {
}
} // namespace ThirdParty } // namespace ThirdParty
} // namespace Platform } // namespace Platform