[cast_api_bindings] Allow for MessagePort deletion by message handlers.
MessagePort implementations may be deleted during an OnMessage() call to their MessagePort::Receiver. Fix the implementations to cope with this by early-exiting to avoid touching MessagePort fields after deletion. Bug: b/175356780 Change-Id: Ib23e1b6a56d2ba730b471829d9680d899ff09217 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2590033 Auto-Submit: Wez <wez@chromium.org> Commit-Queue: Kevin Marshall <kmarshall@chromium.org> Reviewed-by:Kevin Marshall <kmarshall@chromium.org> Cr-Commit-Position: refs/heads/master@{#836657}
Showing
Please register or sign in to comment