Skip to content

Commit 54dbd78

Browse files
sapiersapier
sapier
authored and
sapier
committedDec 16, 2013
Fix broken httpfetch due to SimpleThread removal
1 parent c9ac999 commit 54dbd78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/httpfetch.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ class CurlFetchThread : public JThread
539539

540540
void * Thread()
541541
{
542+
ThreadStarted();
542543
log_register_thread("CurlFetchThread");
543544
DSTACK(__FUNCTION_NAME);
544545

@@ -651,6 +652,8 @@ void httpfetch_cleanup()
651652
void httpfetch_async(const HTTPFetchRequest &fetchrequest)
652653
{
653654
g_httpfetch_thread->requestFetch(fetchrequest);
655+
if (!g_httpfetch_thread->IsRunning())
656+
g_httpfetch_thread->Start();
654657
}
655658

656659
static void httpfetch_request_clear(unsigned long caller)

0 commit comments

Comments
 (0)
Please sign in to comment.