CLOUD: Change Request::handle()
With new ConnectionManager upgrade Requests indicate that they are finished with RequestInfo.state. No need to use handle() return value anymore.
This commit is contained in:
parent
f4547f44df
commit
a7b28605a0
9 changed files with 16 additions and 29 deletions
|
@ -54,7 +54,7 @@ char *CurlJsonRequest::getPreparedContents() {
|
|||
return (char *)result;
|
||||
}
|
||||
|
||||
bool CurlJsonRequest::handle() {
|
||||
void CurlJsonRequest::handle() {
|
||||
if (!_stream) _stream = new NetworkReadStream(_url, _headersList, _postFields);
|
||||
|
||||
if (_stream) {
|
||||
|
@ -77,11 +77,8 @@ bool CurlJsonRequest::handle() {
|
|||
Common::JSONValue *json = Common::JSON::parse(contents);
|
||||
(*_callback)(RequestDataPair(_id, json)); //potential memory leak, free it in your callbacks!
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
} //end of namespace Networking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue