Merge pull request #763 from orozery/cleanup_share_after_handles

cleanup curl handles before curl share
This commit is contained in:
Takeshi Nakatani 2018-05-23 22:30:36 +09:00 committed by GitHub
commit 212bbbbdf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()){