From e36bc81f39b2ab2138bb755ac3b3466e2e3d0582 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 8 Sep 2010 19:13:49 +0200 Subject: [PATCH] Block on zero records also for preferred block --- src/http_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_command.c b/src/http_command.c index 567037f..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_is_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) -- 1.7.10.4