Skip to content

Commit

Permalink
use refernce not copy
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Apr 24, 2018
1 parent 4643c92 commit b7a67b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd_client/SAM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ namespace client
if (session)
{
// find more pending acceptors
for (auto it: m_Owner.ListSockets (m_ID))
for (auto & it: m_Owner.ListSockets (m_ID))
if (it->m_SocketType == eSAMSocketTypeAcceptor)
{
it->m_IsAccepting = true;
Expand Down

0 comments on commit b7a67b4

Please sign in to comment.