1
0

Removed unnecessary mutex

This commit is contained in:
Scott Graves
2017-04-06 17:37:35 -05:00
parent 6eccf6057d
commit 9118fe6b86
2 changed files with 1 additions and 5 deletions

View File

@@ -171,7 +171,6 @@ public:
private:
_SiaRenterAllowance _currentAllowance;
std::shared_ptr<_CSiaFileTree> _fileTree;
std::mutex _fileTreeMutex;
private:
void Refresh(const CSiaCurl& siaCurl, CSiaDriveConfig* siaDriveConfig);

View File

@@ -142,10 +142,7 @@ SiaApiError CSiaApi::_CSiaRenter::RefreshFileTree( )
if (ApiSuccess(cerror))
{
tempTree->BuildTree(result);
{
std::lock_guard<std::mutex> l(_fileTreeMutex);
_fileTree = tempTree;
}
_fileTree = tempTree;
}
else
{