mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
proper return values from download_to_X
This commit is contained in:
parent
d8ed32fc1b
commit
b5eec63e07
@ -646,7 +646,7 @@ download_to_file(const Filename &filename, bool subdocument_resumes) {
|
||||
|
||||
while (run()) {
|
||||
}
|
||||
return is_download_complete();
|
||||
return is_download_complete() && is_valid();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -703,7 +703,7 @@ download_to_ram(Ramfile *ramfile, bool subdocument_resumes) {
|
||||
|
||||
while (run()) {
|
||||
}
|
||||
return is_download_complete();
|
||||
return is_download_complete() && is_valid();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -763,7 +763,7 @@ download_to_stream(ostream *strm, bool subdocument_resumes) {
|
||||
|
||||
while (run()) {
|
||||
}
|
||||
return is_download_complete();
|
||||
return is_download_complete() && is_valid();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user