Don't send server restart events to clients that don't request them.

(imported from commit b3381e904704c18918fcce97d2493241e49004be)
This commit is contained in:
Tim Abbott 2013-11-18 11:24:49 -05:00
parent 91a463def0
commit 14f6625569
1 changed files with 2 additions and 1 deletions

View File

@ -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():