fix files not being closed properly
This commit is contained in:
@@ -83,10 +83,10 @@ public:
|
|||||||
bool PopulateFileSet( FileSet &fs, const CString &sPath );
|
bool PopulateFileSet( FileSet &fs, const CString &sPath );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void HandleRequest( int iRequest );
|
||||||
void RequestTimedOut();
|
void RequestTimedOut();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void HandleRequest( int iRequest );
|
|
||||||
|
|
||||||
/* All requests: */
|
/* All requests: */
|
||||||
RageFileDriver *m_pChildDriver;
|
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? */
|
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
|
/* If we're not in a timed-out state, try to wait for the deletion to complete
|
||||||
* before continuing. */
|
* before continuing. */
|
||||||
|
|||||||
Reference in New Issue
Block a user