From d725f977519a3adff7a9ff3835f9e281a60f6c0d Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sat, 18 Nov 2023 12:11:24 -0500 Subject: [PATCH] Fix: physfs_file_safe_close should not call debug() It may not be safe to call debug() at program shutdown --- lib/netplay/netplay.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/netplay/netplay.cpp b/lib/netplay/netplay.cpp index 4f2e2ec3687..f0d3d199a12 100644 --- a/lib/netplay/netplay.cpp +++ b/lib/netplay/netplay.cpp @@ -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);