Skip to content

Commit

Permalink
Make TNetXNGFile::Close() reentrant
Browse files Browse the repository at this point in the history
Check if fFile pointer still available
  • Loading branch information
linev committed Aug 29, 2023
1 parent 0ae7cbc commit 6c18c77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/netxng/src/TNetXNGFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ void TNetXNGFile::Close(const Option_t */*option*/)
{
TFile::Close();

if (!fFile) return;

XrdCl::XRootDStatus status = fFile->Close();
if (!status.IsOK()) {
Error("Close", "%s", status.ToStr().c_str());
Expand Down

0 comments on commit 6c18c77

Please sign in to comment.