Skip to content

Commit

Permalink
Update SheetDataWriter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqus committed Nov 8, 2024
1 parent ebb2686 commit e99f945
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ooxml/XSSF/Streaming/SheetDataWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,16 @@ public bool Dispose()
}
finally
{
TemporaryFileInfo.Delete();
ret = !File.Exists(TemporaryFileInfo.FullName);
TemporaryFileInfo.Refresh();
try
{
TemporaryFileInfo.Delete();
ret = !File.Exists(TemporaryFileInfo.FullName);
TemporaryFileInfo.Refresh();
}
catch(Exception)
{
ret = false;
}
}
return ret;
}
Expand Down

0 comments on commit e99f945

Please sign in to comment.