Strictly reviewed the exclusive control of PseudoFdInfo class(additional change)

This commit is contained in:
Takeshi Nakatani 2022-08-07 12:16:27 +00:00 committed by Andrew Gaul
parent f6d7ff1084
commit 5ab1037094

View File

@ -145,7 +145,9 @@ PseudoFdInfo::~PseudoFdInfo()
bool PseudoFdInfo::Clear() bool PseudoFdInfo::Clear()
{ {
CancelAllThreads(); if(!CancelAllThreads() || !ResetUploadInfo(AutoLock::NONE)){
return false;
}
CloseUploadFd(); CloseUploadFd();
if(-1 != pseudo_fd){ if(-1 != pseudo_fd){