mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-26 14:41:14 +00:00
Hotfix - keep platform guard in scope (#1104)
Co-authored-by: KuleRucket <luke.d.tucker@gmail.com>
This commit is contained in:
parent
972f726ff9
commit
cd2fe18140
@ -348,7 +348,9 @@ main(int argc, char *argv[]) {
|
||||
|
||||
// If any of the following fail, we log an error and continue event though sunshine will not function correctly.
|
||||
// This allows access to the UI to fix configuration problems or view the logs.
|
||||
if (!platf::init()) {
|
||||
|
||||
auto deinit_guard = platf::init();
|
||||
if (!deinit_guard) {
|
||||
BOOST_LOG(error) << "Platform failed to initialize"sv;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user