private bool RemoveUri(string uri)
{
lock (_thisLock)
{
lock (_amoebaManager.ThisLock)
{
var baseNode = _amoebaManager.BaseNode;
var uris = new List<string>(baseNode.Uris);
if (!uris.Remove(uri)) return false;
_amoebaManager.SetBaseNode(new Node(baseNode.Id, uris));
}
}
return true;
}