bool LLFloaterBuyLandUI::checkTransaction() { if (!mTransaction) { return false; } if (!mTransaction->process()) { return false; } if (mTransaction->status(NULL) != LLXMLRPCTransaction::StatusComplete) { tellUserError(mTransaction->statusMessage(), mTransaction->statusURI()); } else { switch (mTransactionType) { case TransactionPreflight: finishWebSiteInfo(); break; case TransactionBuy: finishWebSitePrep(); break; default: ; } } delete mTransaction; mTransaction = NULL; return true; }
bool LLFloaterBuyLandUI::checkTransaction() { if (!mResponder) { return false; } if (!mResponder->is_finished()) { return false; } if (mResponder->result_code() != CURLE_OK || mResponder->http_status() < 200 || mResponder->http_status() >= 400) { tellUserError(mResponder->reason(), mResponder->getURL()); } else { switch (mTransactionType) { case TransactionPreflight: finishWebSiteInfo(); break; case TransactionBuy: finishWebSitePrep(); break; default: ; } } // We're done with this data. mResponder = NULL; return true; }