aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/server_session.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-15 06:50:22 -0400
committerLioncash <mathew1800@gmail.com>2018-08-15 06:50:50 -0400
commitc5986c7bf792e210ccd3006af3395e29260ab3c3 (patch)
tree6e7f3e623669f326bb9dc9eb1c305674bd5d125d /src/core/hle/kernel/server_session.cpp
parent26a456e76f3808f8a499c8c31052fb68f8bccf5c (diff)
kernel/server_session: Add IsSession() member function
Allows querying the inverse of IsDomain() to make things more readable. This will likely also be usable in the event of implementing ConvertDomainToSession().
Diffstat (limited to 'src/core/hle/kernel/server_session.cpp')
-rw-r--r--src/core/hle/kernel/server_session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp
index d09ca59920..51a1ec1605 100644
--- a/src/core/hle/kernel/server_session.cpp
+++ b/src/core/hle/kernel/server_session.cpp
@@ -152,7 +152,7 @@ ResultCode ServerSession::HandleSyncRequest(SharedPtr<Thread> thread) {
// Handle scenario when ConvertToDomain command was issued, as we must do the conversion at the
// end of the command such that only commands following this one are handled as domains
if (convert_to_domain) {
- ASSERT_MSG(domain_request_handlers.empty(), "already a domain");
+ ASSERT_MSG(IsSession(), "ServerSession is already a domain instance.");
domain_request_handlers = {hle_handler};
convert_to_domain = false;
}