/* Unset registered callbacks */
tts_client_unset_all_cb(client);
- int thread_count = ecore_thread_active_get();
- SLOG(LOG_INFO, TAG_TTSC, "[INFO] Active thread count: %d", thread_count);
- for (int cnt = 0; 0 < thread_count; cnt++) {
- usleep(50000);
- if (30 == cnt) {
- SLOG(LOG_WARN, TAG_TTSC, "[WARNNING] Thread is blocked, %d", thread_count);
- break;
- }
- thread_count = ecore_thread_active_get();
- }
-
if (0 != tts_ipc_close_connection(uid)) {
SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Fail to close connection");
return TTS_ERROR_OPERATION_FAILED;