summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/server_manager.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-19 16:50:45 +0100
committerGitHub <noreply@github.com>2024-02-19 16:50:45 +0100
commitc9ef2e26ca82cacc44998727d704f4b77ee88591 (patch)
tree43a5699123e4930560fc5016faac7efb15b63f4e /src/core/hle/service/server_manager.cpp
parentMerge pull request #13006 from liamwhite/a-hat-in-vram (diff)
parentscope_exit: Make constexpr (diff)
downloadyuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.gz
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.bz2
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.lz
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.xz
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.zst
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/server_manager.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/server_manager.cpp b/src/core/hle/service/server_manager.cpp
index 8c7f94c8c..0b41bbcb9 100644
--- a/src/core/hle/service/server_manager.cpp
+++ b/src/core/hle/service/server_manager.cpp
@@ -177,10 +177,10 @@ Result ServerManager::ManageNamedPort(const std::string& service_name,
Kernel::KPort::Register(m_system.Kernel(), port);
// Ensure that our reference to the port is closed if we fail to register it.
- SCOPE_EXIT({
+ SCOPE_EXIT {
port->GetClientPort().Close();
port->GetServerPort().Close();
- });
+ };
// Register the object name with the kernel.
R_TRY(Kernel::KObjectName::NewFromName(m_system.Kernel(), std::addressof(port->GetClientPort()),
@@ -237,7 +237,9 @@ void ServerManager::StartAdditionalHostThreads(const char* name, size_t num_thre
}
Result ServerManager::LoopProcess() {
- SCOPE_EXIT({ m_stopped.Set(); });
+ SCOPE_EXIT {
+ m_stopped.Set();
+ };
R_RETURN(this->LoopProcessImpl());
}