diff --git a/common/curl_request.cpp b/common/curl_request.cpp index 40d94b956..7eae7fd95 100644 --- a/common/curl_request.cpp +++ b/common/curl_request.cpp @@ -190,7 +190,7 @@ void curl_perform(uv_poll_t *req, int /*status*/, int events) { } int handle_socket(CURL * /*easy*/, curl_socket_t s, int action, void * /*userp*/, void *socketp) { - curl_context *context = nullptr; + curl_context *context; if (action == CURL_POLL_IN || action == CURL_POLL_OUT) { if (socketp) { context = (curl_context *)socketp; @@ -199,9 +199,6 @@ int handle_socket(CURL * /*easy*/, curl_socket_t s, int action, void * /*userp*/ } curl_multi_assign(curl_multi, s, (void *)context); } - if (!context) { - throw std::runtime_error("unhandled action in socket handling"); - } switch (action) { case CURL_POLL_IN: