From 8daa7561fa8e879b7349570cb27674bec13e57c6 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 31 Dec 2015 11:21:01 -0500 Subject: [PATCH] pass ident hash by values to RequestComplete --- Transports.cpp | 2 +- Transports.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Transports.cpp b/Transports.cpp index 25f4f85a..ab59f04d 100644 --- a/Transports.cpp +++ b/Transports.cpp @@ -334,7 +334,7 @@ namespace transport m_Service.post (std::bind (&Transports::HandleRequestComplete, this, r, ident)); } - void Transports::HandleRequestComplete (std::shared_ptr r, const i2p::data::IdentHash& ident) + void Transports::HandleRequestComplete (std::shared_ptr r, i2p::data::IdentHash ident) { auto it = m_Peers.find (ident); if (it != m_Peers.end ()) diff --git a/Transports.h b/Transports.h index c94ae650..cedbc1d3 100644 --- a/Transports.h +++ b/Transports.h @@ -105,7 +105,7 @@ namespace transport void Run (); void RequestComplete (std::shared_ptr r, const i2p::data::IdentHash& ident); - void HandleRequestComplete (std::shared_ptr r, const i2p::data::IdentHash& ident); + void HandleRequestComplete (std::shared_ptr r, i2p::data::IdentHash ident); void PostMessages (i2p::data::IdentHash ident, std::vector > msgs); void PostCloseSession (std::shared_ptr router); bool ConnectToPeer (const i2p::data::IdentHash& ident, Peer& peer);