X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fhttp_command.c;h=37c96fafc1980c7eb6e13409977c486de137f640;hb=e36bc81f39b2ab2138bb755ac3b3466e2e3d0582;hp=198e8168dff8a43fde8ed04320a6c85d16e8c545;hpb=a8e58692c277f450fe2550ce2458dff129a5f9a6;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index 198e816..37c96fa 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -936,7 +936,7 @@ static void cmd_show(struct http_channel *c) if (block) { - if (!strcmp(block, "preferred") && !session_preferred_clients_ready(s->psession)) { + if (!strcmp(block, "preferred") && !session_is_preferred_clients_ready(s->psession) && reclist_get_num_records(s->psession->reclist) == 0) { // if there is already a watch/block. we do not block this one if (session_set_watch(s->psession, SESSION_WATCH_SHOW_PREF, show_records_ready, c, c) != 0)