2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

If replacing a follower stream, ensure the old one closes

This commit is contained in:
Jarrod Johnson 2018-07-13 09:37:00 -04:00
parent c80ebb0e8d
commit 1d16534c16

View File

@ -463,6 +463,8 @@ cfgstreams = {}
def relay_slaved_requests(name, listener):
global cfgleader
stop_following()
if name in cfgstreams:
cfgstreams[name].close()
cfgstreams[name] = listener
msg = listener.recv(8)
while msg: