cleanup curl handles before curl share

This commit is contained in:
Or Ozeri 2018-05-21 13:20:09 +03:00
parent dbe98dcbd2
commit af63a42773

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