Fix select/timeout indication in async replication example

This commit is contained in:
Oleksandr Shulgin 2015-10-14 17:42:53 +02:00
parent 822d671e8b
commit e3097ec956

View File

@ -501,9 +501,9 @@ The individual messages in the replication stream are presented by
if timeout > 0:
sel = select.select([cur], [], [], timeout)
else:
sel = []
sel = ([], [], [])
if not sel:
if not sel[0]:
cur.send_replication_feedback()