X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fclient.c;h=0eee31c5471131de450f376d8b6e349ce262d18b;hb=13beac56adc157d257190ae89e68f4a79a1a805d;hp=89858d6214e88d7c7ae7a47b0d0453f4a3bad73f;hpb=b870d31e2a380260faf8b85ff6b54d5fe775f882;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index 89858d6..0eee31c 100644 --- a/src/client.c +++ b/src/client.c @@ -472,6 +472,7 @@ void client_check_preferred_watch(struct client *cl) 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); } @@ -787,7 +788,6 @@ void client_lock(struct client *c) void client_unlock(struct client *c) { yaz_mutex_leave(c->mutex); - sleep(1); } void client_incref(struct client *c)