Skip to content

Commit

Permalink
pass ident hash by value to transports thread
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Feb 2, 2015
1 parent 60ba7be commit d7c5c24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Transports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace transport
m_Service.post (std::bind (&Transports::PostMessages, this, ident, msgs));
}

void Transports::PostMessage (const i2p::data::IdentHash& ident, i2p::I2NPMessage * msg)
void Transports::PostMessage (i2p::data::IdentHash ident, i2p::I2NPMessage * msg)
{
if (ident == i2p::context.GetRouterInfo ().GetIdentHash ())
{
Expand All @@ -215,7 +215,7 @@ namespace transport
it->second.delayedMessages.push_back (msg);
}

void Transports::PostMessages (const i2p::data::IdentHash& ident, std::vector<i2p::I2NPMessage *> msgs)
void Transports::PostMessages (i2p::data::IdentHash ident, std::vector<i2p::I2NPMessage *> msgs)
{
if (ident == i2p::context.GetRouterInfo ().GetIdentHash ())
{
Expand Down
4 changes: 2 additions & 2 deletions Transports.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ namespace transport
void Run ();
void RequestComplete (std::shared_ptr<const i2p::data::RouterInfo> r, const i2p::data::IdentHash& ident);
void HandleRequestComplete (std::shared_ptr<const i2p::data::RouterInfo> r, const i2p::data::IdentHash& ident);
void PostMessage (const i2p::data::IdentHash& ident, i2p::I2NPMessage * msg);
void PostMessages (const i2p::data::IdentHash& ident, std::vector<i2p::I2NPMessage *> msgs);
void PostMessage (i2p::data::IdentHash ident, i2p::I2NPMessage * msg);
void PostMessages (i2p::data::IdentHash ident, std::vector<i2p::I2NPMessage *> msgs);
void PostCloseSession (std::shared_ptr<const i2p::data::RouterInfo> router);
bool ConnectToPeer (const i2p::data::IdentHash& ident, Peer& peer);

Expand Down

0 comments on commit d7c5c24

Please sign in to comment.