mirror of https://github.com/axmolengine/axmol.git
put request param in lambda in HttpClient::networkThreadAlone
This commit is contained in:
parent
e3eb5aeddd
commit
07245ebf6e
|
@ -181,8 +181,7 @@ void HttpClient::networkThreadAlone(HttpRequest* request)
|
|||
processResponse(response, errorBuffer);
|
||||
|
||||
auto scheduler = Director::getInstance()->getScheduler();
|
||||
scheduler->performFunctionInCocosThread([response]{
|
||||
auto request = response->getHttpRequest();
|
||||
scheduler->performFunctionInCocosThread([response, request]{
|
||||
const ccHttpRequestCallback& callback = request->getCallback();
|
||||
Ref* pTarget = request->getTarget();
|
||||
SEL_HttpResponse pSelector = request->getSelector();
|
||||
|
|
Loading…
Reference in New Issue