mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-10 16:14:36 +00:00
Continue in the face of failure (#1094)
Co-authored-by: KuleRucket <luke.d.tucker@gmail.com>
This commit is contained in:
parent
1ab1b7920e
commit
57a722a3fb
12
src/main.cpp
12
src/main.cpp
@ -346,18 +346,20 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
proc::refresh(config::stream.file_apps);
|
proc::refresh(config::stream.file_apps);
|
||||||
|
|
||||||
auto deinit_guard = platf::init();
|
// If any of the following fail, we log an error and continue event though sunshine will not function correctly.
|
||||||
if (!deinit_guard) {
|
// This allows access to the UI to fix configuration problems or view the logs.
|
||||||
return 4;
|
if (!platf::init()) {
|
||||||
|
BOOST_LOG(error) << "Platform failed to initialize"sv;
|
||||||
}
|
}
|
||||||
|
|
||||||
reed_solomon_init();
|
reed_solomon_init();
|
||||||
auto input_deinit_guard = input::init();
|
auto input_deinit_guard = input::init();
|
||||||
if (video::init()) {
|
if (video::init()) {
|
||||||
return 2;
|
BOOST_LOG(error) << "Video failed to initialize"sv;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (http::init()) {
|
if (http::init()) {
|
||||||
return 3;
|
BOOST_LOG(error) << "http failed to initialize"sv;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<platf::deinit_t> mDNS;
|
std::unique_ptr<platf::deinit_t> mDNS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user