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:
Alexander Tkachev 2016-05-26 19:09:06 +06:00
parent f4547f44df
commit a7b28605a0
9 changed files with 16 additions and 29 deletions

View file

@ -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