mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
requesthandler,websocketserver: Fix C4101 warnings
This commit is contained in:
parent
773f85e0d7
commit
190a9551f6
@ -210,6 +210,7 @@ RequestResult RequestHandler::ProcessRequest(const Request &request)
|
|||||||
try {
|
try {
|
||||||
handler = _handlerMap.at(request.RequestType);
|
handler = _handlerMap.at(request.RequestType);
|
||||||
} catch (const std::out_of_range &oor) {
|
} catch (const std::out_of_range &oor) {
|
||||||
|
UNUSED_PARAMETER(oor);
|
||||||
return RequestResult::Error(RequestStatus::UnknownRequestType, "Your request type is not valid.");
|
return RequestResult::Error(RequestStatus::UnknownRequestType, "Your request type is not valid.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -373,6 +373,7 @@ void WebSocketServer::onMessage(websocketpp::connection_hdl hdl,
|
|||||||
try {
|
try {
|
||||||
session = _sessions.at(hdl);
|
session = _sessions.at(hdl);
|
||||||
} catch (const std::out_of_range &oor) {
|
} catch (const std::out_of_range &oor) {
|
||||||
|
UNUSED_PARAMETER(oor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user