mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Fix crash on exit if a process is currently running
This commit is contained in:
@@ -594,6 +594,11 @@ main(int argc, char *argv[]) {
|
||||
BOOST_LOG(error) << "Platform failed to initialize"sv;
|
||||
}
|
||||
|
||||
auto proc_deinit_guard = proc::init();
|
||||
if (!proc_deinit_guard) {
|
||||
BOOST_LOG(error) << "Proc failed to initialize"sv;
|
||||
}
|
||||
|
||||
reed_solomon_init();
|
||||
auto input_deinit_guard = input::init();
|
||||
if (video::probe_encoders()) {
|
||||
|
||||
Reference in New Issue
Block a user