Skip to content

Commit ed5dbc8

Browse files
committed
No need to scan args in async_get_last_result
So wait_socket_readable() can be called directly.
1 parent 9d3b1df commit ed5dbc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/pg_connection.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3060,7 +3060,8 @@ pgconn_async_get_last_result(VALUE self)
30603060
for(;;) {
30613061
int status;
30623062

3063-
pgconn_block( 0, NULL, self ); /* wait for input (without blocking) before reading the last result */
3063+
/* wait for input (without blocking) before reading each result */
3064+
wait_socket_readable(self, NULL, get_result_readable);
30643065

30653066
cur = gvl_PQgetResult(conn);
30663067
if (cur == NULL)

0 commit comments

Comments
 (0)