Fix bug in setWorld that might have caused a peer entry for myself (which would never be used)
This commit is contained in:
parent
29b966894c
commit
e6a63f5547
2 changed files with 16 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue