Skip to content

Commit

Permalink
Fix broken httpfetch due to SimpleThread removal
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Dec 16, 2013
1 parent c9ac999 commit 54dbd78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/httpfetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ class CurlFetchThread : public JThread

void * Thread()
{
ThreadStarted();
log_register_thread("CurlFetchThread");
DSTACK(__FUNCTION_NAME);

Expand Down Expand Up @@ -651,6 +652,8 @@ void httpfetch_cleanup()
void httpfetch_async(const HTTPFetchRequest &fetchrequest)
{
g_httpfetch_thread->requestFetch(fetchrequest);
if (!g_httpfetch_thread->IsRunning())
g_httpfetch_thread->Start();
}

static void httpfetch_request_clear(unsigned long caller)
Expand Down

0 comments on commit 54dbd78

Please sign in to comment.