Răsfoiți Sursa

*** empty log message ***

Joe Shochet 25 ani în urmă
părinte
comite
b499fd2895
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      panda/src/downloader/extractor.cxx

+ 1 - 1
panda/src/downloader/extractor.cxx

@@ -84,7 +84,6 @@ initiate(Filename &source_file, const Filename &rel_path) {
   _total_bytes_read = 0;
   _total_bytes_read = 0;
   _read_all_input = false;
   _read_all_input = false;
   _handled_all_input = false;
   _handled_all_input = false;
-  _mfile.reset();
   return ES_success;
   return ES_success;
 }
 }
 
 
@@ -112,6 +111,7 @@ run(void) {
   if (_mfile.write(start, size, _rel_path) == true) {
   if (_mfile.write(start, size, _rel_path) == true) {
     _read_stream.close();
     _read_stream.close();
     _source_file.unlink();
     _source_file.unlink();
+    _mfile.reset();
     return ES_success;
     return ES_success;
   }
   }
   return ES_ok;
   return ES_ok;