if (se)
{
client_unlock(cl);
+ /* TODO possible threading issue. Session can have been destroyed */
if (session_is_preferred_clients_ready(se)) {
session_alert_watch(se, SESSION_WATCH_SHOW_PREF);
}
void client_unlock(struct client *c)
{
yaz_mutex_leave(c->mutex);
- sleep(1);
}
void client_incref(struct client *c)