diff --git a/kit/Kit.cpp b/kit/Kit.cpp index 5152a80fd..89a259e39 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -873,7 +873,6 @@ public: const std::string& docId, const std::string& url, std::shared_ptr tileQueue, - SocketPoll& /*socketPoll*/, const std::shared_ptr& websocketHandler) : _loKit(loKit), _jailId(jailId), @@ -2209,16 +2208,14 @@ class KitWebSocketHandler final : public WebSocketHandler, public std::enable_sh std::string _socketName; std::shared_ptr _loKit; std::string _jailId; - SocketPoll& _socketPoll; public: - KitWebSocketHandler(const std::string& socketName, const std::shared_ptr& loKit, const std::string& jailId, SocketPoll& socketPoll) : + KitWebSocketHandler(const std::string& socketName, const std::shared_ptr& loKit, const std::string& jailId) : WebSocketHandler(/* isClient = */ true, /* isMasking */ false), _queue(std::make_shared()), _socketName(socketName), _loKit(loKit), - _jailId(jailId), - _socketPoll(socketPoll) + _jailId(jailId) { } @@ -2269,9 +2266,7 @@ protected: LOG_INF("New session [" << sessionId << "] request on url [" << url << "]."); if (!document) - { - document = std::make_shared(_loKit, _jailId, docKey, docId, url, _queue, _socketPoll, shared_from_this()); - } + document = std::make_shared(_loKit, _jailId, docKey, docId, url, _queue, shared_from_this()); // Validate and create session. if (!(url == document->getUrl() && document->createSession(sessionId))) @@ -2720,7 +2715,7 @@ void lokit_main( mainKit.runOnClientThread(); // We will do the polling on this thread. std::shared_ptr websocketHandler = - std::make_shared("child_ws", loKit, jailId, mainKit); + std::make_shared("child_ws", loKit, jailId); #if !MOBILEAPP mainKit.insertNewUnixSocket(MasterLocation, pathAndQuery, websocketHandler); #else