Skip to content

Commit

Permalink
Fix: physfs_file_safe_close should not call debug()
Browse files Browse the repository at this point in the history
It may not be safe to call debug() at program shutdown
  • Loading branch information
past-due committed Nov 18, 2023
1 parent b4cf7e2 commit d725f97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/netplay/netplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ static inline bool physfs_file_safe_close_impl(PHYSFS_file* f)
}
if (!PHYSFS_isInit())
{
debug(LOG_INFO, "PhysFS isn't init - ignoring attempt to close (likely at program shutdown?)");
return false;
}
PHYSFS_close(f);
Expand Down

0 comments on commit d725f97

Please sign in to comment.