Skip calling |on_disconnected_| when disconnected by being destructed.
Calling |on_disconnected_| is necessary for detecting remote-initiated disconnects, but for local-initiated disconnects, the code responsible for disconnecting is already doing its own cleanup - notifying it of its own action causing a disconnect is unnecessary. Change-Id: I7ee7cf35140517f7849c30de704bd1a1fda62566 Reviewed-on: https://chromium-review.googlesource.com/c/1460199 Commit-Queue: Sam McNally <sammc@chromium.org> Commit-Queue: Sergei Datsenko <dats@chromium.org> Auto-Submit: Sam McNally <sammc@chromium.org> Reviewed-by:Sergei Datsenko <dats@chromium.org> Cr-Commit-Position: refs/heads/master@{#630163}
Showing
Please register or sign in to comment