Fix bug in setWorld that might have caused a peer entry for myself (which would never be used)

This commit is contained in:
Adam Ierymenko 2015-10-23 13:57:02 -07:00
parent 29b966894c
commit e6a63f5547
2 changed files with 16 additions and 9 deletions

View file

@ -225,6 +225,11 @@ public:
return _peers.entries();
}
/**
* @return True if I am a root server in the current World
*/
inline bool amRoot() const throw() { return _amRoot; }
private:
Identity _getIdentity(const Address &zta);
void _setWorld(const World &newWorld);