We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d5ed0 commit 9a3e497Copy full SHA for 9a3e497
Download.cpp
@@ -52,10 +52,13 @@ void downloadList(std::string url) {
52
}
53
54
void downloadCreatures(std::function<void()> callback) {
55
- if (!multi_handle) {
56
- SDL_LogError(SDL_LOG_CATEGORY_ERROR, "curl_multi_init failed");
57
- if (callback) callback();
58
- return;
+ if (!multi_handle) { // so make it god damn it >:(
+ multi_handle = curl_multi_init();
+ if (!multi_handle) {
+ SDL_LogError(SDL_LOG_CATEGORY_ERROR, "curl_multi_init failed");
59
+ if (callback) callback();
60
+ return;
61
+ }
62
63
64
easy_handle = curl_easy_init();
0 commit comments