fixed bug in distant chat accepting tunnels for collecting invites with same hash

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6491 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-07-07 20:43:37 +00:00
parent 940ffd6d9c
commit 6ee0aa9b3f

View File

@ -2920,6 +2920,9 @@ bool p3ChatService::handleTunnelRequest(const std::string& hash,const std::strin
if(it == _distant_chat_invites.end())
return false ;
if(it->second.encrypted_radix64_string.empty()) // don't respond to collected invites. Only to the ones we actually created!
return false ;
it->second.last_hit_time = time(NULL) ;
return true ;
}