Closed ayaka209 closed 6 years ago
AbstractZipDocument.cs Line 21: this.OnLoadAsync(inStream).GetAwaiter().GetResult(); may lead to thread deadlock in some cases,
can be changed to Task.Run(()=> this.OnLoadAsync(inStream)).Wait();
to avoid problem.
public override void Save(Stream outStream) => this.SaveAsync(outStream).GetAwaiter().GetResult();
should be fixed too.
PR are always welcome :)
Fixed by commit df67d161477cd5d3c879721ef68b4630c5408615
AbstractZipDocument.cs Line 21: this.OnLoadAsync(inStream).GetAwaiter().GetResult(); may lead to thread deadlock in some cases,
can be changed to Task.Run(()=> this.OnLoadAsync(inStream)).Wait();
to avoid problem.