LIST_FOREACH(htsp, &htsp_async_connections, htsp_async_link)
if (htsp->htsp_async_mode & mode) {
m = cb(htsp, aux);
- if (m != NULL) {
+ if (m != NULL)
htsp_send_message(htsp, m, NULL);
- htsmsg_destroy(m);
- }
}
}
pthread_mutex_lock(&thrwatch_mutex);
now = getfastmonoclock();
mutex = TAILQ_LAST(&thrwatch_mutexes, tvh_mutex_queue);
- if (mutex && mutex->tstamp + sec2mono(5) < now) {
+ if (mutex && mutex->tstamp + sec2mono(55) < now) {
pthread_mutex_unlock(&thrwatch_mutex);
tvh_thread_mutex_failed(mutex, "deadlock", __FILE__, __LINE__);
}