From d70368314479b8610a512628e982665ea0d44260 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 6 Nov 2013 00:37:56 +0200 Subject: [PATCH] remote_wait_for_cancel: avoid unnecessary warning If the remote server cannot be connected and query is canceled, don't show random warning about "Unfinished connection". Patch by Fazal Majid --- src/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execute.c b/src/execute.c index f0f1cc1..df7807d 100644 --- a/src/execute.c +++ b/src/execute.c @@ -831,7 +831,7 @@ remote_wait_for_cancel(ProxyFunction *func) if (!conn->run_tag) continue; - if (conn->cur->state != C_DONE) + if (conn->cur->state != C_DONE && conn->cur->state != C_NONE) plproxy_error(func, "Unfinished connection: %d", conn->cur->state); if (conn->res != NULL) { -- 2.39.5