Skip to content

Commit 51a2c7d

Browse files
Merge pull request #42 from noplay/non_blocking_connections
Return if the stream is nonblocking
2 parents 54b2d78 + 8b54b43 commit 51a2c7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymysqlreplication/binlogstream.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def fetchone(self):
111111
self.__connected_stream = False
112112
continue
113113

114+
if pkt.is_eof_packet():
115+
return None
116+
114117
if not pkt.is_ok_packet():
115118
continue
116119

0 commit comments

Comments
 (0)