Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2008, 5:38:00 PM (16 years ago)
Author:
landauf
Message:

Fixed the problem mentioned in r2362 which caused the server to crash if the client disconnected (the problem was not caused by the network but rather by the destruction of a WorldEntity).

However there is still a problem causing clients to just shut down sometimes without sending a disconnect message to the server. They are removed after some seconds because of the timeout. Try starting the server with the debugger if you can't reproduce the issue. I'm not 100% sure but I thought disconnecting worked some days or weeks ago.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/WorldEntity.cc

    r2254 r2365  
    7373            this->node_->detachAllObjects();
    7474
    75             for (std::set<WorldEntity*>::const_iterator it = this->children_.begin(); it != this->children_.end(); ++it)
    76                 delete (*it);
     75            for (std::set<WorldEntity*>::const_iterator it = this->children_.begin(); it != this->children_.end(); )
     76                delete (*(it++));
    7777
    7878            if (this->parent_)
Note: See TracChangeset for help on using the changeset viewer.