forked from 0ad/0ad
Fixed a freeze where a lock was acquired twice (in OpenFile and Activate).
This was SVN commit r5413.
This commit is contained in:
parent
336573b114
commit
990f603655
@ -251,7 +251,7 @@ CNetLogFileSink::CNetLogFileSink( void )
|
||||
|
||||
// Make full path
|
||||
file_make_full_native_path( path.c_str(), filePath );
|
||||
|
||||
|
||||
m_FileName = filePath;
|
||||
m_Append = true;
|
||||
}
|
||||
@ -362,8 +362,6 @@ void CNetLogFileSink::Write( char c )
|
||||
//-----------------------------------------------------------------------------
|
||||
void CNetLogFileSink::OpenFile( const CStr& fileName, bool append )
|
||||
{
|
||||
CScopeLock lock( m_Mutex );
|
||||
|
||||
// Close any open file
|
||||
if ( m_File.is_open() ) m_File.close();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user