WebSocket: Check the return value from SendFrame
network::WebSocket should return immediately if the return value of net::WebSocket::SendFrame is CHANNEL_DELETED. It was not doing so. Add the necessary return statements. Also add WARN_UNUSED_RESULT to SendFrame() to make sure it is checked in future. Tested manually. No unit tests for this change because network::WebSocket has no unit tests. BUG=1065704 Change-Id: I0c7e0cf57f3a98fc80461ec50df59513146eff89 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2123961Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#754997}
Showing
This diff is collapsed.
Please register or sign in to comment