Skip to content

Commit 41161dc

Browse files
committed
5 second timeout
1 parent 30d787c commit 41161dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
WUPS_PLUGIN_NAME("UTag");
1212
WUPS_PLUGIN_DESCRIPTION("Display the titles you play on your tag!");
13-
WUPS_PLUGIN_VERSION("v1.1");
13+
WUPS_PLUGIN_VERSION("v1.0.1");
1414
WUPS_PLUGIN_AUTHOR("twosecslater");
1515
WUPS_PLUGIN_LICENSE("GPLv3");
1616

@@ -40,6 +40,7 @@ ON_APPLICATION_START(args) {
4040
CURL *curl = curl_easy_init();
4141
CURLcode ec;
4242
curl_easy_setopt(curl, CURLOPT_URL, tagURL);
43+
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
4344
ec = curl_easy_perform(curl);
4445
if(ec != CURLE_OK) {
4546
DEBUG_FUNCTION_LINE("curl failed with exit code %s", curl_easy_strerror(ec));

0 commit comments

Comments
 (0)