From 9c27d1264161f90d7e2fb0a1418604f962089ae6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 6 Feb 2005 10:20:03 +0000 Subject: [PATCH] fix files not being closed properly --- stepmania/src/RageFileDriverTimeout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageFileDriverTimeout.cpp b/stepmania/src/RageFileDriverTimeout.cpp index c59dd4bfc1..e120f7ff06 100644 --- a/stepmania/src/RageFileDriverTimeout.cpp +++ b/stepmania/src/RageFileDriverTimeout.cpp @@ -83,10 +83,10 @@ public: bool PopulateFileSet( FileSet &fs, const CString &sPath ); protected: + void HandleRequest( int iRequest ); void RequestTimedOut(); private: - void HandleRequest( int iRequest ); /* All requests: */ RageFileDriver *m_pChildDriver; @@ -297,7 +297,7 @@ void ThreadedFileWorker::Close( RageFileBasic *pFile ) { ASSERT( m_pChildDriver != NULL ); /* how did you get a file to begin with? */ - if( IsTimedOut() ) + if( !IsTimedOut() ) { /* If we're not in a timed-out state, try to wait for the deletion to complete * before continuing. */