SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Current state is not ready");
return VCD_ERROR_INVALID_STATE;
}
+ if (-1 != vcd_client_manager_get_pid()) {
+ SLOG(LOG_DEBUG, TAG_VCD, "[Server] Manager is NOT available.");
+ return VCD_ERROR_OPERATION_FAILED;
+ }
SLOG(LOG_DEBUG, TAG_VCD, "[Server] set recognition mode = %d", recognition_mode);
vcd_client_set_recognition_mode(recognition_mode);
SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Current state is not recording");
return VCD_ERROR_INVALID_STATE;
}
+ if (-1 != vcd_client_manager_get_pid()) {
+ SLOG(LOG_DEBUG, TAG_VCD, "[Server] Manager is NOT available.");
+ return VCD_ERROR_OPERATION_FAILED;
+ }
/* 2. Stop recorder */
vcd_recorder_stop();
SLOG(LOG_WARN, TAG_VCD, "[Server ERROR] Current state is not recording or processing");
return VCD_ERROR_INVALID_STATE;
}
+ if (-1 != vcd_client_manager_get_pid()) {
+ SLOG(LOG_DEBUG, TAG_VCD, "[Server] Manager is NOT available.");
+ return VCD_ERROR_OPERATION_FAILED;
+ }
if (g_restart_timer != NULL) {
SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Delete restart engine timer");