From 0d8f45b250e878955051b0937c29b534115daef8 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 9 Dec 2005 10:44:52 +0000 Subject: [PATCH] Bug 207 - Now exits on http 400+ errors git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1670 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_remote_camera.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_remote_camera.cpp b/src/zm_remote_camera.cpp index c92e6ec33..f5228d406 100644 --- a/src/zm_remote_camera.cpp +++ b/src/zm_remote_camera.cpp @@ -309,6 +309,8 @@ int RemoteCamera::GetResponse() if ( status_code < 200 || status_code > 299 ) { Error(( "Invalid response status %d: %s", status_code, status_mesg )); + if ( status_code >= 400 ) + exit( -1 ); return( -1 ); } Debug( 3, ( "Got status '%d' (%s), http version %s", status_code, status_mesg, http_version ));