mirror of
https://github.com/xcat2/confluent.git
synced 2025-09-06 02:08:28 +00:00
If replacing a follower stream, ensure the old one closes
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user