mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
*** empty log message ***
This commit is contained in:
parent
bd9709a8a4
commit
93d366516a
@ -91,6 +91,8 @@ init(PT(Buffer) buffer) {
|
|||||||
_token_board = new DownloaderTokenBoard;
|
_token_board = new DownloaderTokenBoard;
|
||||||
_buffer = buffer;
|
_buffer = buffer;
|
||||||
_download_enabled = true;
|
_download_enabled = true;
|
||||||
|
// We need to flush after every write in case we're interrupted
|
||||||
|
_dest_stream.setf(ios::unitbuf, 0);
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
WSAData mydata;
|
WSAData mydata;
|
||||||
@ -676,8 +678,6 @@ write_to_disk(DownloadStatus &status) {
|
|||||||
<< status._bytes_in_buffer << " to disk" << endl;
|
<< status._bytes_in_buffer << " to disk" << endl;
|
||||||
|
|
||||||
_dest_stream.write(status._start, status._bytes_in_buffer);
|
_dest_stream.write(status._start, status._bytes_in_buffer);
|
||||||
// We need to explicitly flush in case we're interrupted
|
|
||||||
_dest_stream.flush();
|
|
||||||
status._total_bytes_written += status._bytes_in_buffer;
|
status._total_bytes_written += status._bytes_in_buffer;
|
||||||
|
|
||||||
// Throw an event to indicate how many bytes have been written so far
|
// Throw an event to indicate how many bytes have been written so far
|
||||||
|
Loading…
x
Reference in New Issue
Block a user