bug fixes

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-ChatLobby@4710 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-12-04 22:22:15 +00:00
parent 71a079b55f
commit 0086e182ec
2 changed files with 9 additions and 1 deletions

View file

@ -230,12 +230,17 @@ bool p3ChatService::getVirtualPeerId(const ChatLobbyId& id,std::string& vpid)
{
RsStackMutex stack(mChatMtx); /********** STACK LOCKED MTX ******/
std::cerr << "Was asked for virtual peer name of " << std::hex << id << std::dec<< std::endl;
std::map<ChatLobbyId,ChatLobbyEntry>::const_iterator it(_chat_lobbys.find(id)) ;
if(it == _chat_lobbys.end())
{
std::cerr << " not found!! " << std::endl;
return false ;
}
vpid = it->second.virtual_peer_id ;
std::cerr << " returning " << vpid << std::endl;
return true ;
}