summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2002-10-16 04:38:00 +0000
committerBruce Momjian2002-10-16 04:38:00 +0000
commitec64390e915819cd324612b980cd4b4a07484d55 (patch)
tree6b0a221925b8cfbc3306328c8edd24eef1e6241c
parent6b0e166644cd33e96bbb907190592ec1e88d644b (diff)
Fix from Joe on timeout code.
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 7dd13f8a401..65775de9d64 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.211 2002/10/16 02:55:30 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.212 2002/10/16 04:38:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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