added: in FileLog::save_log(): test whether synchro_lock() has returned true
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1216 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
7309c7817d
commit
a29cb45f6a
|
@ -105,8 +105,8 @@ void FileLog::save_log(PT::WTextStream * buffer)
|
|||
if( buffer->empty() )
|
||||
return;
|
||||
|
||||
synchro_lock();
|
||||
|
||||
if( synchro_lock() )
|
||||
{
|
||||
try
|
||||
{
|
||||
if( log_stdout )
|
||||
|
@ -134,6 +134,7 @@ void FileLog::save_log(PT::WTextStream * buffer)
|
|||
catch(...)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
synchro_unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue