diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c index 785bf00c..a41d7541 100644 --- a/psycopg/connection_int.c +++ b/psycopg/connection_int.c @@ -353,7 +353,7 @@ conn_async_connect(connectionObject *self) PQsetNoticeProcessor(pgconn, conn_notice_callback, (void*)self); - self->status = CONN_STATUS_ASYNC; + self->status = CONN_STATUS_SETUP; return 0; }