mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
events: Do nothing in apply_event for restart events.
These signal that the Tornado process restarted, which in itself is not notable for apply_events.
This commit is contained in:
committed by
Tim Abbott
parent
802477ca1a
commit
c1aadbe52e
@@ -1531,6 +1531,9 @@ def apply_event(
|
||||
# possible, but the worst expected outcome is that the client
|
||||
# retains the old JS instead of reloading.
|
||||
logging.warning("Got a web_reload_client event during apply_events")
|
||||
elif event["type"] == "restart":
|
||||
# The Tornado process restarted. This has no effect; we ignore it.
|
||||
pass
|
||||
else:
|
||||
raise AssertionError("Unexpected event type {}".format(event["type"]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user