put the sendControlCommand(quit) into the right place

This commit is contained in:
Isaac Connor 2015-01-07 16:56:10 -05:00
parent 21ccb9b91a
commit 74929236e3
1 changed files with 4 additions and 5 deletions

View File

@ -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;
}