This is do we can continue to in voxel-servers standalone. Namely, if we want multiple voxel servers. If you run the voxel servers first, this code will detect them and not ask for an assignment. 

Eventually, we will support multiple voxel servers with unique configurations in the assignment client, but that's not available yet. 

Once that's available this code will be sunseted. 

On Sep 17, 2013, at 9:21 AM, Stephen Birarda <notifications@github.com> wrote:

> In domain-server/src/main.cpp:
> 
> > +        //    seen one after a few tries.
> > +        // 2) They aren't soloNodeOfType() so we have to count them.
> > +        int voxelServerCount = 0;
> > +        for (NodeList::iterator node = nodeList->begin(); node != nodeList->end(); node++) {
> > +            if (node->getType() == NODE_TYPE_VOXEL_SERVER) {
> > +                voxelServerCount++;
> > +            }
> > +        }
> > +        const int MIN_VOXEL_SERVER_CHECKS = 10;
> > +        if (checkForVoxelServerAttempt > MIN_VOXEL_SERVER_CHECKS &&
> > +            voxelServerCount == 0 &&
> > +            std::find(::assignmentQueue.begin(), ::assignmentQueue.end(), &voxelServerAssignment) == ::assignmentQueue.end()) {
> > +            qDebug("Missing a Voxel Server and assignment not in queue. Adding.\n");
> > +            ::assignmentQueue.push_front(&voxelServerAssignment);
> > +        }
> > +        checkForVoxelServerAttempt++;
> under what scenario does a DS start and not assign at least one voxel-server?
> 
> —
> Reply to this email directly or view it on GitHub.
>