diff --git a/mbuni/extras/pgsql-queue/mms_pgsql_queue.c b/mbuni/extras/pgsql-queue/mms_pgsql_queue.c index 9177cbc..f2a161e 100644 --- a/mbuni/extras/pgsql-queue/mms_pgsql_queue.c +++ b/mbuni/extras/pgsql-queue/mms_pgsql_queue.c @@ -199,12 +199,7 @@ static PGconn *get_conn_real(const char *function, const char *file, const int l alloc_conns++; break; - } else if (alloc_conns < max_conns) { /* we failed to connect, report it. */ - mms_error(0, "pgsql_queue", NULL, "get_conn: failed to connect to db: %s", - PQerrorMessage(c)); - PQfinish(c); - c = NULL; - } + } /* we get here because we don't have any free connections, and we've hit the limit * of allowed connections, or db connection allocation failed.