diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-11 09:09:01 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-15 02:14:53 +0100 |
commit | 8873c0c3db377b54dd5ae36f55543ec12bdefb96 (patch) | |
tree | f318732626585d2fe4687e633e6105750ff9c4f4 /src/core | |
parent | core: hle: kernel: k_thread: Update to reflect tree changes. (diff) | |
download | yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.gz yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.bz2 yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.lz yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.xz yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.zst yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/sm/sm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index eaa172595..695a1faa6 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -81,6 +81,8 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name } auto* port = Kernel::KPort::Create(kernel); + SCOPE_EXIT({ port->Close(); }); + port->Initialize(ServerSessionCountMax, false, name); auto handler = it->second; port->GetServerPort().SetSessionHandler(std::move(handler)); |