Bug fix: (correctly) revoke CurlResponderBuffer events.

This commit is contained in:
Aleric Inglewood
2012-10-21 17:26:57 +02:00
parent a4bf92dae4
commit f7626699da
3 changed files with 8 additions and 3 deletions

View File

@@ -235,6 +235,11 @@ void AICurlEasyRequestStateMachine::finish_impl(void)
// Revoke callbacks.
{
AICurlEasyRequest_wat curl_easy_request_w(*mCurlEasyRequest);
if (mBuffered)
{
AICurlResponderBuffer_wat buffered_easy_request_w(*mCurlEasyRequest);
buffered_easy_request_w->send_events_to(NULL);
}
curl_easy_request_w->send_events_to(NULL);
curl_easy_request_w->revokeCallbacks();
}