From af63a427737d5fc540bcd63829b4174c2b1c4b55 Mon Sep 17 00:00:00 2001 From: Or Ozeri Date: Mon, 21 May 2018 13:20:09 +0300 Subject: [PATCH] cleanup curl handles before curl share --- src/curl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index bf7dd58..6cf32da 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -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()){