mirror of https://github.com/zulip/zulip.git
Don't send server restart events to clients that don't request them.
(imported from commit b3381e904704c18918fcce97d2493241e49004be)
This commit is contained in:
parent
91a463def0
commit
14f6625569
|
@ -261,7 +261,8 @@ def load_event_queues():
|
|||
def send_restart_events():
|
||||
event = dict(type='restart', server_generation=settings.SERVER_GENERATION)
|
||||
for client in clients.itervalues():
|
||||
# All clients get restart events
|
||||
if not client.accepts_event_type('restart'):
|
||||
continue
|
||||
client.add_event(event.copy())
|
||||
|
||||
def setup_event_queue():
|
||||
|
|
Loading…
Reference in New Issue