From c89b28dc1d0c5a062ceee127f953175d905b7c87 Mon Sep 17 00:00:00 2001 From: Giuseppe Persico Date: Mon, 3 Sep 2018 12:21:06 +0200 Subject: [PATCH] Update curl_exception.cpp Fixed #119 --- src/curl_exception.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/curl_exception.cpp b/src/curl_exception.cpp index fcccc87..472ee9e 100644 --- a/src/curl_exception.cpp +++ b/src/curl_exception.cpp @@ -22,17 +22,13 @@ curl_exception::curl_exception(const std::string &error, const std::string &fun_ // Copy constructor implementation. It makes a copy of the traceback in a thread safe way. curl_exception::curl_exception(const curl_exception &object) { - curl_exception::tracebackLocker.lock(); curl_exception::traceback = object.get_traceback(); - curl_exception::tracebackLocker.unlock(); } // Assignment operator implementation. Implement the assignment operation in a thread safe way avoiding self assignment. curl_exception& curl_exception::operator=(curl_exception &object) { if (&object != this) { - curl_exception::tracebackLocker.lock(); curl_exception::traceback = object.get_traceback(); - curl_exception::tracebackLocker.unlock(); } return *this; }