Skip to content

Commit

Permalink
Add one more curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Zhuravlev committed Mar 2, 2013
1 parent 3823878 commit 5917e86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/serverlist.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 5917e86

Please sign in to comment.