sol: Handle deactivate payload correctly when session is closed
Resolves openbmc/openbmc#1781
Resolves openbmc/openbmc#2053
Change-Id: Iabb61fc510d33a4132e7ad07184eb8847301b686
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/sessions_manager.cpp b/sessions_manager.cpp
index 18c96ba..ee4a35f 100644
--- a/sessions_manager.cpp
+++ b/sessions_manager.cpp
@@ -126,6 +126,7 @@
{
return iter->second;
}
+ break;
}
case RetrieveOption::RC_SESSION_ID:
{
@@ -142,6 +143,7 @@
{
return iter->second;
}
+ break;
}
default:
throw std::runtime_error("Invalid retrieval option");