adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.24k stars 480 forks source link

ExtractionEnd event fired before write stream closes #465

Open bipinbaglung opened 4 years ago

bipinbaglung commented 4 years ago

https://github.com/adamhathcock/sharpcompress/blob/a2bd66ded8c9fb8a1b97db34bcc806bb6c0c9030/src/SharpCompress/Archives/IArchiveEntryExtensions.cs#L37

EntryExtractionEnd event fired before the Output stream closes which is causing error while iterating thorough the extracted files.

I tried to fix it but not sure if that is correct way. https://github.com/bipinbaglung/sharpcompress/commit/f450817c63946d8dbd40a3d56ded6fc0060bb2da

adamhathcock commented 4 years ago

Please submit a pull request with the fix