From 7806b00d56481cb8b3ce8d6ce8217627a175a604 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 21 Dec 2011 15:43:37 +0100 Subject: [PATCH] Don't reuse connection if client is busy Might resolve bug 4972. --- src/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 9eac1a9..823595c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -524,7 +524,7 @@ int client_prep_connection(struct client *cl, if (co) { assert(co->host); - if (co->host == host) + if (co->host == host && client_get_state(cl) == Client_Idle) ; /* reusing connection. It's ours! */ else { -- 1.7.10.4