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:
Tomasz Sowa 2019-09-25 16:12:10 +00:00
parent 7309c7817d
commit a29cb45f6a
1 changed files with 21 additions and 20 deletions

View File

@ -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();
}