handle failure to connect to zmc in zms gracefully

This commit is contained in:
Isaac Connor 2017-10-24 16:22:26 -07:00
parent ea669b4750
commit df14b3c812
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,11 @@ bool StreamBase::loadMonitor( int monitor_id ) {
Fatal( "Unable to load monitor id %d for streaming", monitor_id ); Fatal( "Unable to load monitor id %d for streaming", monitor_id );
return( false ); return( false );
} }
monitor->connect(); if ( ! monitor->connect() ) {
Fatal( "Unable to connect to monitor id %d for streaming", monitor_id );
return( false );
}
return( true ); return( true );
} }