Attempt 3 ;)

dependabot/npm_and_yarn/Src/WebController/UI/websocket-extensions-0.1.4
tim.carrington 2020-01-17 13:30:24 +00:00
parent aea013bb95
commit 7cf2e0671f
1 changed files with 4 additions and 4 deletions

View File

@ -260,11 +260,11 @@ MWR::C3::Interfaces::Connectors::Covenant::Covenant(ByteView arguments)
task = webClientBridge.request(request);
resp = task.get();
if (resp.status_code() == web::http::status_codes::OK)
if (resp.status_code() != web::http::status_codes::OK)
throw std::exception((OBF("[Covenant] Error setting up BridgeListener, HTTP resp: ") + std::to_string(resp.status_code())).c_str());
if(!UpdateListenerId()) //now get the id of the listener
throw std::exception((OBF("[Covenant] Error getting ListenerID after creation")));
else
throw std::exception((OBF("[Covenant] Error setting up BridgeListener, HTTP resp: ") + std::to_string(resp.status_code())).c_str());
}
InitializeSockets();