Changeset - r26878:b9c8507af623
[Not reviewed]
master
0 1 0
frosch - 16 months ago 2023-02-13 19:09:49
frosch@openttd.org
Fix: compilation with libcurl from 2013.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/core/http_curl.cpp
Show inline comments
 
@@ -128,13 +128,13 @@ bool NetworkHTTPRequest::Receive()
 

	
 
	/* Check for as long as there is activity on the socket, but once in a while return.
 
	 * This allows the GUI to always update, even on really fast downloads. */
 
	for (int count = 0; count < 100; count++) {
 
		/* Check if there was activity in the multi-handle. */
 
		int numfds;
 
		curl_multi_poll(this->multi_handle, NULL, 0, 0, &numfds);
 
		curl_multi_wait(this->multi_handle, NULL, 0, 0, &numfds);
 
		if (numfds == 0) return false;
 

	
 
		/* Let CURL process the activity. */
 
		curl_multi_perform(this->multi_handle, &still_running);
 
		if (still_running == 0) break;
 
	}
0 comments (0 inline, 0 general)