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());
style::stopManager();
ThirdParty::finish();
Instance = nullptr;
}
void Application::run() {
ThirdParty::start();
// Depends on OpenSSL on macOS, so on ThirdParty::start().
// Depends on notifications settings.
_notifications = std::make_unique<Window::Notifications::System>();

View file

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

View file

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

View file

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

View file

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

View file

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