From 174c82a452cff0345031d7cba14553675a483987 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 9 Jun 2009 14:15:02 +0000 Subject: [PATCH] Remove error message if terminated and can't send. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2916 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_monitor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 4ac6d4f0c..aacec2b19 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -3229,7 +3229,8 @@ bool MonitorStream::sendFrame( const char *filepath, struct timeval *timestamp ) fprintf( stdout, "Content-Type: image/jpeg\r\n\r\n" ); if ( fwrite( img_buffer, img_buffer_size, 1, stdout ) != 1 ) { - Error( "Unable to send stream frame: %s", strerror(errno) ); + if ( !zm_terminate ) + Error( "Unable to send stream frame: %s", strerror(errno) ); return( false ); } fprintf( stdout, "\r\n\r\n" ); @@ -3314,7 +3315,8 @@ bool MonitorStream::sendFrame( Image *image, struct timeval *timestamp ) fprintf( stdout, "Content-Length: %d\r\n\r\n", img_buffer_size ); if ( fwrite( img_buffer, img_buffer_size, 1, stdout ) != 1 ) { - Error( "Unable to send stream frame: %s", strerror(errno) ); + if ( !zm_terminate ) + Error( "Unable to send stream frame: %s", strerror(errno) ); return( false ); } fprintf( stdout, "\r\n\r\n" );