mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-24 12:11:52 +00:00
If replacing a follower stream, ensure the old one closes
This commit is contained in:
parent
c80ebb0e8d
commit
1d16534c16
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user