[remoting][gRPC] Prevent task from running after scoped stream is deleted
Previously deleting the scoped stream will only prevent new tasks from being scheduled, and it doesn't drop pending tasks. This is a potential issue if the caller expect its method not to be called after the scoped stream is deleted. This CL fixes this by making the stream request check the scoped stream's validity before running the task. Bug: 927962 Change-Id: I6a43b21772b89231ee89a8def68ba40c2b50c821 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574893Reviewed-by:Joe Downing <joedow@chromium.org> Commit-Queue: Yuwei Huang <yuweih@chromium.org> Cr-Commit-Position: refs/heads/master@{#652592}
Showing
Please register or sign in to comment