Add comment documenting logic flow of fetch_events.

This commit is contained in:
Tim Abbott 2016-03-20 16:19:56 -07:00
parent 7fabfe9cb9
commit e51811aa9e
1 changed files with 2 additions and 0 deletions

View File

@ -473,6 +473,8 @@ def fetch_events(user_profile_id, user_profile_realm_id, user_profile_email,
extra_log_data += " [was connected]"
return (ret, extra_log_data)
# After this point, dont_block=False, the queue is empty, and we
# have a pre-existing queue, so we wait for new events.
if was_connected:
logging.info("Disconnected handler for queue %s (%s/%s)" % (queue_id, user_profile_email,
client_type_name))