| 778 | } |
| 779 | |
| 780 | void LeaseSetDestination::CancelDestinationRequest (const i2p::data::IdentHash& dest, bool notify) |
| 781 | { |
| 782 | auto s = shared_from_this (); |
| 783 | boost::asio::post (m_Service, [dest, notify, s](void) |
| 784 | { |
| 785 | auto it = s->m_LeaseSetRequests.find (dest); |
| 786 | if (it != s->m_LeaseSetRequests.end ()) |
| 787 | { |
| 788 | auto requestComplete = it->second; |
| 789 | s->m_LeaseSetRequests.erase (it); |
| 790 | if (notify && requestComplete) requestComplete->Complete (nullptr); |
| 791 | } |
| 792 | }); |
| 793 | } |
| 794 | |
| 795 | void LeaseSetDestination::CancelDestinationRequestWithEncryptedLeaseSet (std::shared_ptr<const i2p::data::BlindedPublicKey> dest, bool notify) |
| 796 | { |