From 6a774e468560ee1387f13e6b473ff695a04ce357 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sun, 3 Feb 2013 21:56:13 +0100 Subject: [PATCH] This should fix voice decline crash --- indra/llmessage/llhttpclient.cpp | 10 ++++++---- indra/newview/llimview.cpp | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp index 85dcfe606..554198299 100644 --- a/indra/llmessage/llhttpclient.cpp +++ b/indra/llmessage/llhttpclient.cpp @@ -208,11 +208,13 @@ static void request( AIStateMachine* parent = NULL, AIStateMachine::state_type new_parent_state = 0) { - if (responder) - { - // For possible debug output from within the responder. - responder->setURL(url); + llassert(responder); + + if (!responder) { + responder = new LLHTTPClient::ResponderIgnore; } + // For possible debug output from within the responder. + responder->setURL(url); LLURLRequest* req; try diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 5a2d3a72f..73d45caf2 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -351,7 +351,7 @@ bool inviteUserResponse(const LLSD& notification, const LLSD& response) LLHTTPClient::post( url, data, - NULL); + new LLHTTPClient::ResponderIgnore); } }