Lets CurlEasyHandle::approved() stay consisten throughout its lifetime.

This commit is contained in:
Aleric Inglewood
2013-05-12 17:56:29 +02:00
parent 80c8eaab2a
commit f8aac1f3dd

View File

@@ -140,7 +140,7 @@ class CurlEasyHandle : public boost::noncopyable, protected AICurlEasyHandleEven
// and revoking of the callbacks is harmless (and happens for the raw non-statemachine version).
void remove_queued(void) { mQueuedForRemoval = true; }
// In case it's added after being removed.
void add_queued(void) { mQueuedForRemoval = false; if (mApproved) { mApproved->honored(); mApproved = NULL; } }
void add_queued(void) { mQueuedForRemoval = false; if (mApproved) { mApproved->honored(); } }
#ifdef DEBUG_CURLIO
void debug(bool debug) { if (mDebug) debug_curl_remove_easy(mEasyHandle); if (debug) debug_curl_add_easy(mEasyHandle); mDebug = debug; }