diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-04-25 23:01:53 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-04-25 23:08:08 +0100 |
| commit | 2596cf712554833e480011de0c1b3074656ec8f3 (patch) | |
| tree | b74b130e6d3a3020c17bd3fbcea839d4d10426d3 /psycopg/connection_int.c | |
| parent | 8efa1fa6af0a979273fc8b0b25f790f6608d4f16 (diff) | |
| download | psycopg2-2596cf712554833e480011de0c1b3074656ec8f3.tar.gz | |
Simplified psyco_wait() function interface.
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; } } |
