bool Client::disconnectServer( ServerPtr server ) { bool success = true; // shut down process-local server (see _startLocalServer) if( server->_localServer ) { EQASSERT( server->isConnected( )); EQCHECK( server->shutdown( )); _joinLocalServer(); server->_localServer = false; server->setClient( 0 ); EQASSERT( !server->isConnected( )) }
bool Client::disconnectServer( ServerPtr server ) { bool success = true; // shut down process-local server (see _startLocalServer) if( server->_localServer ) { LBASSERT( server->isConnected( )); LBCHECK( server->shutdown( )); _joinLocalServer(); server->_localServer = false; server->setClient( 0 ); LBASSERT( !server->isConnected( )); } else { server->setClient( 0 ); success = Super::disconnectServer( server.get( )); } _mainThreadQueue.flush(); return success; }