fixed bug causing turtle to keep asking for a tunnel after a distant chat is closed if not connected

This commit is contained in:
csoler 2016-01-06 18:38:27 -05:00
parent 61f8e73c36
commit 3d6fa0cf8d

View File

@ -1465,6 +1465,8 @@ bool p3GxsTunnelService::closeExistingTunnel(const RsGxsTunnelId& tunnel_id, uin
if(it2 != _gxs_tunnel_virtual_peer_ids.end())
hash = it2->second.hash ;
else
hash = it->second.hash ;
// check how many clients are used. If empty, close the tunnel