rosolko / WebDriverManager.Net

Automatic Selenium Webdriver binaries management for .Net
MIT License
267 stars 84 forks source link

Getting a ThreadAbortError when calling RemoveZip(zipPath); #330

Closed WesleyPSI closed 2 months ago

WesleyPSI commented 3 months ago

In BinaryServices.cs

The stream zipStream is not getting disposed. Updated with a using.

   using (Stream zipStream = zip.GetInputStream(zipEntry))
   {
       // Unzip file in buffered chunks. This is just as fast as unpacking to a buffer the full size
       // of the file, but does not waste memory.
       using (FileStream streamWriter = File.Create(destination))
       {
           StreamUtils.Copy(zipStream, streamWriter, buffer);
       }
   }
rosolko commented 2 months ago

Released with 2.17.3 version