mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-26 08:18:28 -04:00
put the sendControlCommand(quit) into the right place
This commit is contained in:
1 parent
21ccb9b91a
commit
74929236e3
1 file changed
+4
-5
@@ -277,11 +277,6 @@ if ( !empty($action) )
|
||||
zmaControl( $monitor, "stop" );
|
||||
zmcControl( $monitor, $restart?"restart":"" );
|
||||
zmaControl( $monitor, "start" );
|
||||
if ( $monitor['Controllable'] ) {
|
||||
require_once( 'control_functions.php' );
|
||||
sendControlCommand( $mid, 'quit' );
|
||||
}
|
||||
$ctrlCommand = ZM_PATH_BIN."/zmcontrol.pl --id=$mid --command=quit";
|
||||
}
|
||||
$refreshParent = true;
|
||||
}
|
||||
@@ -541,6 +536,10 @@ if ( !empty($action) )
|
||||
zmcControl( $monitor, "restart" );
|
||||
zmaControl( $monitor, "start" );
|
||||
}
|
||||
if ( $monitor['Controllable'] ) {
|
||||
require_once( 'control_functions.php' );
|
||||
sendControlCommand( $mid, 'quit' );
|
||||
}
|
||||
//daemonControl( 'restart', 'zmwatch.pl' );
|
||||
$refreshParent = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user