summaryrefslogtreecommitdiff
path: root/include/obmc_console.hpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2021-11-16 20:36:33 +0300
committerGunnar Mills <gmills@us.ibm.com>2021-11-16 20:40:51 +0300
commitccd584f2da1e687ea66d47824a791162458e737b (patch)
tree3af24aac73a347af09448e543f57440d0b21b791 /include/obmc_console.hpp
parent0f3d3a01aed4040ef73a977a958ecdf4f68111f6 (diff)
downloadbmcweb-ccd584f2da1e687ea66d47824a791162458e737b.tar.xz
Revert "Remove AsyncResp from openHandler"
This reverts commit 0f3d3a01aed4040ef73a977a958ecdf4f68111f6. Seeing bumps fail. Change-Id: Ida7b1bae48abbed2e00a5259e8f94b64168d4788 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include/obmc_console.hpp')
-rw-r--r--include/obmc_console.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp
index dab9521481..478649ac8d 100644
--- a/include/obmc_console.hpp
+++ b/include/obmc_console.hpp
@@ -119,7 +119,8 @@ inline void requestRoutes(App& app)
BMCWEB_ROUTE(app, "/console0")
.privileges({{"ConfigureComponents", "ConfigureManager"}})
.websocket()
- .onopen([](crow::websocket::Connection& conn) {
+ .onopen([](crow::websocket::Connection& conn,
+ const std::shared_ptr<bmcweb::AsyncResp>&) {
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
sessions.insert(&conn);