comparison src/core/http.cc @ 319:d928ec7b6a0d

services/kitsu: implement GetAnimeList() it finally works!
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 17:52:26 -0400
parents b1f4d1867ab1
children
comparison
equal deleted inserted replaced
318:3b355fa948c7 319:d928ec7b6a0d
121 SetHeaders(headers); 121 SetHeaders(headers);
122 SetType(type); 122 SetType(type);
123 } 123 }
124 124
125 RequestThread::~RequestThread() { 125 RequestThread::~RequestThread() {
126 /* block until the function can safely exit. 126 /* block until the function can safely exit */
127 *
128 * this sucks. find out a better way to do this, which will probably
129 * be to put all of the threads in a pool */
130 Stop(); 127 Stop();
131 wait(); 128 wait();
132 } 129 }
133 130
134 void RequestThread::SetUrl(const std::string& url) { 131 void RequestThread::SetUrl(const std::string& url) {