• Yuwei Huang's avatar
    [remoting][host] Don't send host offline reason for host deletion · dd3c86d4
    Yuwei Huang authored
    When the host receives a deletion notification from directory, it tries
    to send an invalid host ID offline reason to directory before shutting
    itself down. This is likely to fail since the backend might have already
    unregistered the robot account. Then the host will keep trying to send
    the offline reason a few times until it eventually gives up.
    
    Sending offline reason for host deleted on the directory is unnecessary
    and will delay the host shutdown process, so this CL prevents the host
    from sending the offline reason in this case.
    
    Bug: 968859
    Change-Id: I2de39b5426f52c3e3db05af92e00ec68a4dd9206
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1678700
    Commit-Queue: Joe Downing <joedow@chromium.org>
    Reviewed-by: default avatarJoe Downing <joedow@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#672758}
    dd3c86d4
host_exit_codes.cc 1.02 KB