mirror of https://github.com/axmolengine/axmol.git
fix: can not create networkThread at second create HttpClient.
This commit is contained in:
parent
05df5b8e14
commit
77210d60ae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue