diff options
author | zhanghch05 <zhanghch05@inspur.com> | 2021-10-21 09:07:57 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-03-29 04:56:16 +0300 |
commit | 7772638ea777820234e6004ee63dc558e629e35e (patch) | |
tree | 7c3c82565e74370751efd0308199ee4039add782 /include/kvm_websocket.hpp | |
parent | 1c8252799b1c97fad5b05c5746ec512292a1f66c (diff) | |
download | bmcweb-7772638ea777820234e6004ee63dc558e629e35e.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:
(from previous commit) Opened KVM in webui-vue and it works.
Signed-off-by: zhanghaicheng <zhanghch05@inspur.com>
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I793f05836aeccdc275b7aaaeede41b3a2c276595
Diffstat (limited to 'include/kvm_websocket.hpp')
-rw-r--r-- | include/kvm_websocket.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp index d45d4143a4..fa61b755ae 100644 --- a/include/kvm_websocket.hpp +++ b/include/kvm_websocket.hpp @@ -161,8 +161,7 @@ inline void requestRoutes(App& app) BMCWEB_ROUTE(app, "/kvm/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 (sessions.size() == maxSessions) |