fix return value for removeTmpDir
This commit is contained in:
parent
c9518f345f
commit
f9b33f305d
|
@ -394,7 +394,10 @@ bool SMTPFileSystem::exec()
|
|||
}
|
||||
m_device.disconnect();
|
||||
|
||||
m_tmp_files_pool.removeTmpDir();
|
||||
if (!m_tmp_files_pool.removeTmpDir()) {
|
||||
logerr("Can not remove a temporary directory.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -58,8 +58,9 @@ std::string TmpFilesPool::makeTmpPath(const std::string &path_device) const
|
|||
|
||||
bool TmpFilesPool::createTmpDir()
|
||||
{
|
||||
removeTmpDir();
|
||||
return smtpfs_create_dir(m_tmp_dir);
|
||||
if (removeTmpDir())
|
||||
return smtpfs_create_dir(m_tmp_dir);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TmpFilesPool::removeTmpDir()
|
||||
|
|
Loading…
Reference in New Issue