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/dbus_monitor.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/dbus_monitor.hpp')
-rw-r--r-- | include/dbus_monitor.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp index 8519b5a400..764d157985 100644 --- a/include/dbus_monitor.hpp +++ b/include/dbus_monitor.hpp @@ -109,8 +109,7 @@ inline void requestRoutes(App& app) BMCWEB_ROUTE(app, "/subscribe") .privileges({{"Login"}}) .websocket() - .onopen([&](crow::websocket::Connection& conn, - const std::shared_ptr<bmcweb::AsyncResp>&) { + .onopen([&](crow::websocket::Connection& conn) { BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened"; sessions.try_emplace(&conn); }) |