From: Bruce Momjian Date: Wed, 16 Oct 2002 04:38:00 +0000 (+0000) Subject: Fix from Joe on timeout code. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=24a15e5fbb68394ceb9d353a752e680088545ad5;p=users%2Fbernd%2Fpostgres.git Fix from Joe on timeout code. --- diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 3355624e15..3370157d41 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -1076,7 +1076,7 @@ connectDBComplete(PGconn *conn) finish_time = time(NULL) + timeout; } - while (finish_time == -1 || time(NULL) >= finish_time) + while (finish_time == -1 || time(NULL) < finish_time) { /* * Wait, if necessary. Note that the initial state (just after