mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
do not attempt to get the server status if no status URL is specified
This commit is contained in:
@ -1193,7 +1193,7 @@ void StatusCallback(void *param)
|
||||
curl_easy_setopt(hCurl, CURLOPT_WRITEFUNCTION, &CurlCallback);
|
||||
curl_easy_setopt(hCurl, CURLOPT_WRITEDATA, param);
|
||||
|
||||
if (curl_easy_perform(hCurl) != 0)
|
||||
if (statusUrl[0] && curl_easy_perform(hCurl) != 0) // only perform request if there's actually a URL set
|
||||
PostMessage(hwnd, WM_USER_SETSTATUSMSG, 0, (LPARAM) curlError);
|
||||
|
||||
for(unsigned i = 0; i < UPDATE_STATUSMSG_SECONDS && s_loginDlgRunning; ++i)
|
||||
|
Reference in New Issue
Block a user