mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
*** empty log message ***
This commit is contained in:
parent
4f9ef24895
commit
e56b75d5f0
@ -91,8 +91,10 @@ get_bytes_written(void) const {
|
|||||||
<< "initiated" << endl;
|
<< "initiated" << endl;
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
nassertr(_current_status != NULL, 0);
|
if (_current_status != NULL)
|
||||||
return _current_status->_total_bytes_written;
|
return _current_status->_total_bytes_written;
|
||||||
|
else
|
||||||
|
return _total_bytes_written;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -68,6 +68,7 @@ Downloader(void) {
|
|||||||
_initiated = false;
|
_initiated = false;
|
||||||
_ever_initiated = false;
|
_ever_initiated = false;
|
||||||
_TCP_stack_initialized = false;
|
_TCP_stack_initialized = false;
|
||||||
|
_total_bytes_written = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -383,6 +384,7 @@ cleanup(void) {
|
|||||||
// connection when the download is complete
|
// connection when the download is complete
|
||||||
_connected = false;
|
_connected = false;
|
||||||
_dest_stream.close();
|
_dest_stream.close();
|
||||||
|
_total_bytes_written = _current_status->_total_bytes_written;
|
||||||
delete _current_status;
|
delete _current_status;
|
||||||
_initiated = false;
|
_initiated = false;
|
||||||
}
|
}
|
||||||
|
@ -147,6 +147,7 @@ private:
|
|||||||
|
|
||||||
DownloadStatus *_current_status;
|
DownloadStatus *_current_status;
|
||||||
bool _got_any_data;
|
bool _got_any_data;
|
||||||
|
int _total_bytes_written;
|
||||||
|
|
||||||
double _tlast;
|
double _tlast;
|
||||||
double _tfirst;
|
double _tfirst;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user