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
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue