fixed bug that would reset service permission flags when discovery is enabled and discovery info is received

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6283 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-03-28 19:48:45 +00:00
parent 80bf2f7a39
commit ee54247cc2

View File

@ -564,6 +564,7 @@ bool p3PeerMgrIMPL::addFriend(const std::string& input_id, const std::string& in
mLinkMgr->addFriend(id, !(visState & RS_VIS_STATE_NODHT)); mLinkMgr->addFriend(id, !(visState & RS_VIS_STATE_NODHT));
} }
service_flags &= servicePermissionFlags(gpg_id) ; // Always reduce the permissions.
setServicePermissionFlags(gpg_id,service_flags) ; setServicePermissionFlags(gpg_id,service_flags) ;
#ifdef PEER_DEBUG #ifdef PEER_DEBUG