]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
regression from 0160072adcc516b53816d8db379ba4bf6862b182 code was outside of code...
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Nov 2012 22:46:30 +0000 (16:46 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Nov 2012 22:46:36 +0000 (16:46 -0600)
src/switch_pgsql.c

index 328a5811eb4c2584137b27138e377865eedd2749..5a0ca21809f8f9c8eba3cfbe55031f32649c2800 100644 (file)
@@ -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;
 }