fix: can not create networkThread at second create HttpClient.

This commit is contained in:
lite3 2014-06-19 22:07:24 +08:00
parent 05df5b8e14
commit 77210d60ae
1 changed files with 2 additions and 2 deletions

View File

@ -545,10 +545,10 @@ bool HttpClient::lazyInitThreadSemphore()
s_requestQueue = new Vector<HttpRequest*>();
s_responseQueue = new Vector<HttpResponse*>();
s_need_quit = false;
auto t = std::thread(CC_CALLBACK_0(HttpClient::networkThread, this));
t.detach();
s_need_quit = false;
}
return true;