summaryrefslogtreecommitdiff
path: root/include/vm_websocket.hpp
diff options
context:
space:
mode:
authorzhanghch05 <zhanghch05@inspur.com>2021-10-21 09:07:57 +0300
committerzhanghch05 <zhanghch05@inspur.com>2021-11-16 03:46:11 +0300
commit0f3d3a01aed4040ef73a977a958ecdf4f68111f6 (patch)
treebe10d6a61f04615127233ae1b458446dc471b6dd /include/vm_websocket.hpp
parent54fbf177ec555ad06229c4c156add8952929bfcf (diff)
downloadbmcweb-0f3d3a01aed4040ef73a977a958ecdf4f68111f6.tar.xz
Remove AsyncResp from openHandler
This change, moving the openHandler back to only supporting websocket disconnects and not 404s.Because AsyncResp is removed from openHandler. Tested: Opened KVM in webui-vue and it works. Signed-off-by: zhanghaicheng <zhanghch05@inspur.com> Change-Id: I90811f4ab91ad41cb298877f76252dce80932b2b
Diffstat (limited to 'include/vm_websocket.hpp')
-rw-r--r--include/vm_websocket.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index 34ef82ef99..08de90e0d9 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -160,8 +160,7 @@ inline void requestRoutes(App& app)
BMCWEB_ROUTE(app, "/vm/0/0")
.privileges({{"ConfigureComponents", "ConfigureManager"}})
.websocket()
- .onopen([](crow::websocket::Connection& conn,
- const std::shared_ptr<bmcweb::AsyncResp>&) {
+ .onopen([](crow::websocket::Connection& conn) {
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
if (session != nullptr)