mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 06:11:11 -05:00
removed code inconsistency (did not cause any issue)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6711 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5039fc46ea
commit
8aa3ccad72
@ -968,10 +968,12 @@ void p3turtle::handleSearchResult(RsTurtleSearchResultItem *item)
|
|||||||
// --------------------------------- File Transfer. -------------------------------- //
|
// --------------------------------- File Transfer. -------------------------------- //
|
||||||
// -----------------------------------------------------------------------------------//
|
// -----------------------------------------------------------------------------------//
|
||||||
|
|
||||||
// Routing of turtle tunnel items in a generic manner. Most tunnel packets will use this function, except packets designed for
|
// Routing of turtle tunnel items in a generic manner. Most tunnel packets will
|
||||||
// contructing the tunnels and searching, namely TurtleSearchRequests/Results and OpenTunnel/TunnelOkItems
|
// use this function, except packets designed for contructing the tunnels and
|
||||||
|
// searching, namely TurtleSearchRequests/Results and OpenTunnel/TunnelOkItems
|
||||||
//
|
//
|
||||||
// Only packets coming from handleIncoming() end up here, so this function is able to catch the transiting traffic.
|
// Only packets coming from handleIncoming() end up here, so this function is
|
||||||
|
// able to catch the transiting traffic.
|
||||||
//
|
//
|
||||||
void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item)
|
void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item)
|
||||||
{
|
{
|
||||||
@ -1644,6 +1646,7 @@ void p3turtle::handleTunnelResult(RsTurtleTunnelOkItem *item)
|
|||||||
{
|
{
|
||||||
found = true ;
|
found = true ;
|
||||||
|
|
||||||
|
{
|
||||||
// add the tunnel uniquely
|
// add the tunnel uniquely
|
||||||
bool found = false ;
|
bool found = false ;
|
||||||
|
|
||||||
@ -1666,6 +1669,7 @@ void p3turtle::handleTunnelResult(RsTurtleTunnelOkItem *item)
|
|||||||
locked_addDistantPeer(new_hash,item->tunnel_id) ;
|
locked_addDistantPeer(new_hash,item->tunnel_id) ;
|
||||||
new_vpid = _local_tunnels[item->tunnel_id].vpid ; // save it for off-mutex usage.
|
new_vpid = _local_tunnels[item->tunnel_id].vpid ; // save it for off-mutex usage.
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(!found)
|
if(!found)
|
||||||
std::cerr << "p3turtle: error. Could not find hash that emmitted tunnel request " << reinterpret_cast<void*>(item->tunnel_id) << std::endl ;
|
std::cerr << "p3turtle: error. Could not find hash that emmitted tunnel request " << reinterpret_cast<void*>(item->tunnel_id) << std::endl ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user