Skip to content
Snippets Groups Projects
Commit 5917e862 authored by Ilya Zhuravlev's avatar Ilya Zhuravlev
Browse files

Add one more curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);

parent 38238783
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,7 @@ void sendAnnounce(std::string action, u16 clients) {
if (curl)
{
CURLcode res;
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_URL, (g_settings->get("serverlist_url")+std::string("/announce?json=")+curl_easy_escape(curl, writer.write( server ).c_str(), 0)).c_str());
//curl_easy_setopt(curl, CURLOPT_USERAGENT, "minetest");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ServerList::ServerAnnounceCallback);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment