Commit 8f6bd292 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix double-callback-call crash in //components/cast_channel/

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: I1b8ae11a95b384ad0c086c0fe62a2187338f4ab8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382073Reviewed-by: default avatarmark a. foltz <mfoltz@chromium.org>
Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#804454}
parent 5bfb47a1
......@@ -311,6 +311,7 @@ void CastMessageHandler::SendSetVolumeRequest(int channel_id,
if (!socket) {
DVLOG(2) << __func__ << ": socket not found: " << channel_id;
std::move(callback).Run(Result::kFailed);
return;
}
auto* requests = GetOrCreatePendingRequests(channel_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment