mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 01:55:19 -04:00
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:
parent
71a079b55f
commit
0086e182ec
2 changed files with 9 additions and 1 deletions
|
@ -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 ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue