From 822d671e8b2b0039bbcfb908c87fd239aa152faf Mon Sep 17 00:00:00 2001 From: Oleksandr Shulgin Date: Wed, 14 Oct 2015 17:40:39 +0200 Subject: [PATCH] Clear repl_stop flag after the consume loop. --- psycopg/cursor_type.c | 1 + 1 file changed, 1 insertion(+) diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c index c7e6c26a..c797c264 100644 --- a/psycopg/cursor_type.c +++ b/psycopg/cursor_type.c @@ -1684,6 +1684,7 @@ psyco_curs_consume_replication_stream(cursorObject *self, PyObject *args, PyObje } self->repl_consuming = 0; + self->repl_stop = 0; /* who knows, what if we will be called again? */ return res; }