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

@ -112,13 +112,11 @@ void DropboxListDirectoryRequest::responseCallback(Networking::RequestDataPair p
delete json;
}
bool DropboxListDirectoryRequest::handle() {
if (_complete && _filesCallback) {
void DropboxListDirectoryRequest::handle() {
if (_complete) {
ConnMan.getRequestInfo(_id).state = Networking::FINISHED;
if (_filesCallback) (*_filesCallback)(Storage::RequestFileArrayPair(_id, _files));
}
return _complete;
}
void DropboxListDirectoryRequest::restart() {