diff options
author | Ilya Zhuravlev <zhuravlevilya@ya.ru> | 2013-03-03 00:02:00 +0400 |
---|---|---|
committer | Ilya Zhuravlev <zhuravlevilya@ya.ru> | 2013-03-03 00:02:00 +0400 |
commit | 5917e862977518b80cb7a2a4b9dfbeda59c3656b (patch) | |
tree | d9a222e6f494111e9400472d0ffa468eee0ec93b /src | |
parent | 3823878305568f099b7ebeac3fd5a226dd68c9b9 (diff) | |
download | minetest-5917e862977518b80cb7a2a4b9dfbeda59c3656b.tar.gz minetest-5917e862977518b80cb7a2a4b9dfbeda59c3656b.tar.bz2 minetest-5917e862977518b80cb7a2a4b9dfbeda59c3656b.zip |
Add one more curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
Diffstat (limited to 'src')
-rw-r--r-- | src/serverlist.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp index d37b5d637..3dfc79f50 100644 --- a/src/serverlist.cpp +++ b/src/serverlist.cpp @@ -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); |