Commit aefff197 authored by Ken MacKay's avatar Ken MacKay Committed by Commit Bot

[Chromecast] Fix use-after-move error

Bug: internal b/145558823
Change-Id: I0bfa60287df3cbce321efac39e60da417cd9c401
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960511
Commit-Queue: Kenneth MacKay <kmackay@chromium.org>
Commit-Queue: Yuchen Liu <yucliu@chromium.org>
Auto-Submit: Kenneth MacKay <kmackay@chromium.org>
Reviewed-by: default avatarYuchen Liu <yucliu@chromium.org>
Reviewed-by: default avatarLuke Halliwell (slow) <halliwell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723477}
parent a7728a66
......@@ -110,7 +110,8 @@ void ControlConnection::SetStreamCountCallback(StreamCountCallback callback) {
stream_count_callback_ = std::move(callback);
if (socket_) {
Generic message;
message.mutable_request_stream_count()->set_subscribe(!callback.is_null());
message.mutable_request_stream_count()->set_subscribe(
!stream_count_callback_.is_null());
socket_->SendProto(message);
}
}
......
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