From bfe3fdf347a79ae99a7e5a7bfcec1292b1b13eba Mon Sep 17 00:00:00 2001 From: Anthony Minessale <anthm@freeswitch.org> Date: Wed, 7 Nov 2012 16:46:30 -0600 Subject: [PATCH] regression from 0160072adcc516b53816d8db379ba4bf6862b182 code was outside of code block --- src/switch_pgsql.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/switch_pgsql.c b/src/switch_pgsql.c index 328a5811eb..5a0ca21809 100644 --- a/src/switch_pgsql.c +++ b/src/switch_pgsql.c @@ -159,9 +159,12 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_cancel_real(const char *file, ret = SWITCH_PGSQL_FAIL; } PQfreeCancel(cancel); -#endif + /* Make sure the query is fully cancelled */ while (PQgetResult(handle->con) != NULL); + +#endif + return ret; }