| 336 | } |
| 337 | |
| 338 | void SiteToSiteClient::error(const utils::Identifier& transactionID) { |
| 339 | std::shared_ptr<Transaction> transaction = NULL; |
| 340 | |
| 341 | auto it = this->known_transactions_.find(transactionID); |
| 342 | |
| 343 | if (it == known_transactions_.end()) { |
| 344 | return; |
| 345 | } else { |
| 346 | transaction = it->second; |
| 347 | } |
| 348 | |
| 349 | transaction->_state = TRANSACTION_ERROR; |
| 350 | tearDown(); |
| 351 | return; |
| 352 | } |
| 353 | |
| 354 | // Complete the transaction |
| 355 | bool SiteToSiteClient::complete(const utils::Identifier& transactionID) { |
no test coverage detected