{
SLOG(LOG_DEBUG, TAG_STTD, "===== Stop by timeout");
- g_recording_timer = NULL;
+ if (NULL != g_recording_timer) {
+ ecore_timer_del(g_recording_timer);
+ g_recording_timer = NULL;
+ }
int uid = 0;
uid = stt_client_get_current_recognition();
}
}
+ if (NULL != g_recording_timer) {
+ ecore_timer_del(g_recording_timer);
+ g_recording_timer = NULL;
+ }
+
+ if (NULL != g_processing_timer) {
+ ecore_timer_del(g_processing_timer);
+ g_processing_timer = NULL;
+ }
+
char* sound = NULL;
ret = sttd_client_get_start_sound(uid, &sound);
if (0 != ret) {
sttd_recorder_unset_audio_session();
sttd_engine_agent_recognize_cancel();
- ecore_timer_del(g_recording_timer);
+ if (NULL != g_recording_timer) {
+ ecore_timer_del(g_recording_timer);
+ g_recording_timer = NULL;
+ }
sttd_client_set_state(uid, APP_STATE_READY);
SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Fail to start recorder : result(%d)", ret);
Eina_Bool __time_out_for_processing(void *data)
{
- g_processing_timer = NULL;
+ if (NULL != g_processing_timer) {
+ ecore_timer_del(g_processing_timer);
+ g_processing_timer = NULL;
+ }
/* current uid */
int uid = stt_client_get_current_recognition();
g_recording_timer = NULL;
}
+ if (NULL != g_processing_timer) {
+ ecore_timer_del(g_processing_timer);
+ g_processing_timer = NULL;
+ }
+
char* sound = NULL;
if (0 != sttd_client_get_stop_sound(uid, &sound)) {
SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Fail to get start beep sound");
return STTD_ERROR_NONE;
}
+