Update( )
{
// Force upstream updates
- for( unsigned int idx = 0; idx < this->m_Inputs.size( ); ++idx )
- this->m_Inputs[ idx ]->GetSource( )->Update( );
+ std::string r = "";
+ for( unsigned int i = 0; i < this->m_Inputs.size( ) && r == ""; ++i )
+ r = this->m_Inputs[ i ]->GetSource( )->Update( );
// Current update
- std::string ret = this->_GenerateData( );
- this->m_OutputsDisconnected = false;
+ if( r == "" )
+ {
+ r = this->_GenerateData( );
+ this->m_OutputsDisconnected = false;
+
+ } // fi
// Return error description, if any
- return( ret );
+ return( r );
}
// -------------------------------------------------------------------------