Kaynağa Gözat

*** empty log message ***

Mike Goslin 25 yıl önce
ebeveyn
işleme
13870a3151
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      panda/src/downloader/downloader.cxx

+ 2 - 0
panda/src/downloader/downloader.cxx

@@ -577,6 +577,8 @@ write_to_disk(DownloadStatus &status) {
       << status._bytes_in_buffer << " to disk" << endl;
       
     _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;
 
     // Throw an event to indicate how many bytes have been written so far