mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-11 16:52:35 +03:00
Fix select/timeout indication in async replication example
This commit is contained in:
parent
822d671e8b
commit
e3097ec956
|
@ -501,9 +501,9 @@ The individual messages in the replication stream are presented by
|
||||||
if timeout > 0:
|
if timeout > 0:
|
||||||
sel = select.select([cur], [], [], timeout)
|
sel = select.select([cur], [], [], timeout)
|
||||||
else:
|
else:
|
||||||
sel = []
|
sel = ([], [], [])
|
||||||
|
|
||||||
if not sel:
|
if not sel[0]:
|
||||||
cur.send_replication_feedback()
|
cur.send_replication_feedback()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user