diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-07 04:09:31 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-07 05:05:17 +0200 |
commit | da2f00ab7dba0bd226233bc9b9a66d8025579f2e (patch) | |
tree | bb3fd8cbc9b1a8958c1a4e9d1e8f2fe67e710b54 /src/core/hle/kernel/client_port.cpp | |
parent | Merge pull request #931 from DarkLordZach/nca-as-drd (diff) | |
download | yuzu-da2f00ab7dba0bd226233bc9b9a66d8025579f2e.tar yuzu-da2f00ab7dba0bd226233bc9b9a66d8025579f2e.tar.gz yuzu-da2f00ab7dba0bd226233bc9b9a66d8025579f2e.tar.bz2 yuzu-da2f00ab7dba0bd226233bc9b9a66d8025579f2e.tar.lz yuzu-da2f00ab7dba0bd226233bc9b9a66d8025579f2e.tar.xz yuzu-da2f00ab7dba0bd226233bc9b9a66d8025579f2e.tar.zst yuzu-da2f00ab7dba0bd226233bc9b9a66d8025579f2e.zip |
Diffstat (limited to 'src/core/hle/kernel/client_port.cpp')
-rw-r--r-- | src/core/hle/kernel/client_port.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hle/kernel/client_port.cpp b/src/core/hle/kernel/client_port.cpp index 7933c105c..134e41ebc 100644 --- a/src/core/hle/kernel/client_port.cpp +++ b/src/core/hle/kernel/client_port.cpp @@ -14,8 +14,8 @@ namespace Kernel { -ClientPort::ClientPort() {} -ClientPort::~ClientPort() {} +ClientPort::ClientPort() = default; +ClientPort::~ClientPort() = default; ResultVal<SharedPtr<ClientSession>> ClientPort::Connect() { // Note: Threads do not wait for the server endpoint to call @@ -40,4 +40,12 @@ ResultVal<SharedPtr<ClientSession>> ClientPort::Connect() { return MakeResult(std::get<SharedPtr<ClientSession>>(sessions)); } +void ClientPort::ConnectionClosed() { + if (active_sessions == 0) { + return; + } + + --active_sessions; +} + } // namespace Kernel |