fix files not being closed properly

This commit is contained in:
Glenn Maynard
2005-02-06 10:20:03 +00:00
parent 22de4f78c9
commit 9c27d12641
+2 -2
View File
@@ -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. */