From 3d6fa0cf8d5db293e68dbb02056f1cf8f44f683c Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 6 Jan 2016 18:38:27 -0500 Subject: [PATCH] fixed bug causing turtle to keep asking for a tunnel after a distant chat is closed if not connected --- libretroshare/src/gxstunnel/p3gxstunnel.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretroshare/src/gxstunnel/p3gxstunnel.cc b/libretroshare/src/gxstunnel/p3gxstunnel.cc index bc96b0185..ccd20087c 100644 --- a/libretroshare/src/gxstunnel/p3gxstunnel.cc +++ b/libretroshare/src/gxstunnel/p3gxstunnel.cc @@ -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