MISC
This commit is contained in:
+1
-1
@@ -658,7 +658,7 @@ namespace confighttp {
|
|||||||
// If user get a return, then the exit has failed.
|
// If user get a return, then the exit has failed.
|
||||||
// This might not be thread safe but we're exiting anyways
|
// This might not be thread safe but we're exiting anyways
|
||||||
std::thread write_resp([response]{
|
std::thread write_resp([response]{
|
||||||
sleep(5000);
|
std::this_thread::sleep_for(5s);
|
||||||
response->write();
|
response->write();
|
||||||
});
|
});
|
||||||
write_resp.detach();
|
write_resp.detach();
|
||||||
|
|||||||
@@ -176,21 +176,21 @@ namespace platf::publish {
|
|||||||
mdns_registration_t():
|
mdns_registration_t():
|
||||||
existing_instance(nullptr) {
|
existing_instance(nullptr) {
|
||||||
if (service(true, existing_instance)) {
|
if (service(true, existing_instance)) {
|
||||||
BOOST_LOG(error) << "Unable to register Sunshine mDNS service"sv;
|
BOOST_LOG(error) << "Unable to register Apollo mDNS service"sv;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_LOG(info) << "Registered Sunshine mDNS service"sv;
|
BOOST_LOG(info) << "Registered Apollo mDNS service"sv;
|
||||||
}
|
}
|
||||||
|
|
||||||
~mdns_registration_t() override {
|
~mdns_registration_t() override {
|
||||||
if (existing_instance) {
|
if (existing_instance) {
|
||||||
if (service(false, existing_instance)) {
|
if (service(false, existing_instance)) {
|
||||||
BOOST_LOG(error) << "Unable to unregister Sunshine mDNS service"sv;
|
BOOST_LOG(error) << "Unable to unregister Apollo mDNS service"sv;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_LOG(info) << "Unregistered Sunshine mDNS service"sv;
|
BOOST_LOG(info) << "Unregistered Apollo mDNS service"sv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -234,11 +234,11 @@ namespace proc {
|
|||||||
|
|
||||||
// Set primary display if needed
|
// Set primary display if needed
|
||||||
if (shouldSetPrimary) {
|
if (shouldSetPrimary) {
|
||||||
VDISPLAY::setPrimaryDisplay(
|
VDISPLAY::setPrimaryDisplay(
|
||||||
(launch_session->virtual_display || _app.virtual_display_primary)
|
(launch_session->virtual_display || _app.virtual_display_primary)
|
||||||
? vdisplayName.c_str()
|
? vdisplayName.c_str()
|
||||||
: prevPrimaryDisplayName.c_str()
|
: prevPrimaryDisplayName.c_str()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set virtual_display to true when everything went fine
|
// Set virtual_display to true when everything went fine
|
||||||
|
|||||||
Reference in New Issue
Block a user