diff options
Diffstat (limited to 'psycopg/connection_int.c')
| -rw-r--r-- | psycopg/connection_int.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c index b878749..3684cf4 100644 --- a/psycopg/connection_int.c +++ b/psycopg/connection_int.c @@ -346,7 +346,6 @@ static int _conn_sync_connect(connectionObject *self) { PGconn *pgconn; - PyObject *wait_rv; int green; /* store this value to prevent inconsistencies due to a change @@ -382,10 +381,7 @@ _conn_sync_connect(connectionObject *self) /* if the connection is green, wait to finish connection */ if (green) { - wait_rv = psyco_wait(self); - if (wait_rv) { - Py_DECREF(wait_rv); - } else { + if (0 != psyco_wait(self)) { return -1; } } |
