mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
httpget class: if a request is cancelled before a response is available give a hint about this instead of returning a nonsense response value.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16463 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
05f24a1ec4
commit
c7727da19f
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ HttpGet::HttpGet(QObject *parent)
|
|||
outputToBuffer = true;
|
||||
cached = false;
|
||||
getRequest = -1;
|
||||
// if a request is cancelled before a reponse is available return some
|
||||
// hint about this in the http response instead of nonsense.
|
||||
response = -1;
|
||||
|
||||
connect(&http, SIGNAL(done(bool)), this, SLOT(httpDone(bool)));
|
||||
connect(&http, SIGNAL(dataReadProgress(int, int)), this, SLOT(httpProgress(int, int)));
|
||||
connect(&http, SIGNAL(requestFinished(int, bool)), this, SLOT(httpFinished(int, bool)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue