Skip to content

Commit

Permalink
Merge pull request #763 from orozery/cleanup_share_after_handles
Browse files Browse the repository at this point in the history
cleanup curl handles before curl share
  • Loading branch information
ggtakec committed May 23, 2018
2 parents a0e62b5 + af63a42 commit 212bbbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/curl.cpp
Expand Up @@ -416,10 +416,10 @@ bool S3fsCurl::DestroyS3fsCurl(void)
if(!S3fsCurl::DestroyCryptMutex()){
result = false;
}
if(!S3fsCurl::DestroyShareCurl()){
if(!sCurlPool->Destroy()){
result = false;
}
if (!sCurlPool->Destroy()) {
if(!S3fsCurl::DestroyShareCurl()){
result = false;
}
if(!S3fsCurl::DestroyGlobalCurl()){
Expand Down

0 comments on commit 212bbbb

Please sign in to comment.