mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed bug in tunnel monitoring code
This commit is contained in:
parent
66df281f25
commit
3c9af3d2e7
@ -704,11 +704,11 @@ void RsGxsNetTunnelService::autowash()
|
||||
#ifdef DEBUG_RSGXSNETTUNNEL
|
||||
std::cerr << " active, with client-side peers : ";
|
||||
#endif
|
||||
should_monitor_tunnels = true ;
|
||||
should_monitor_tunnels = false ;
|
||||
}
|
||||
else
|
||||
{
|
||||
should_monitor_tunnels = false ;
|
||||
should_monitor_tunnels = true ;
|
||||
#ifdef DEBUG_RSGXSNETTUNNEL
|
||||
std::cerr << " active, and no client-side peers available : " ;
|
||||
#endif
|
||||
@ -719,8 +719,9 @@ void RsGxsNetTunnelService::autowash()
|
||||
std::cerr << " passive : ";
|
||||
#endif
|
||||
|
||||
// check if the group is in active or passive mode, in which case make sure that turtle manages tunnels or not.
|
||||
// if active, then we check wether they are tunnels are not. If not, we ask turtle to monitor.
|
||||
// We should also check whether the group is supplied using another tunnel. If so, no need to request tunnels.
|
||||
// Otherwise the engine will keep requesting tunnels for all groups.
|
||||
#warning CODE MISSING HERE
|
||||
|
||||
if(should_monitor_tunnels)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user