Commit 84c0abbe authored by Sami Kyostila's avatar Sami Kyostila Committed by Commit Bot

services/tracing: Make stopping a failed tracing session a no-op

If a tracing session failed to start, stopping it shouldn't do anything
either.

Bug: 1139845
Change-Id: Ib68f787ff009d2c81fbd928a4cf625f290f65b2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487101
Commit-Queue: Sami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Auto-Submit: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: default avatarEric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818874}
parent b03951ca
......@@ -389,7 +389,8 @@ class ConsumerEndpoint : public perfetto::ConsumerEndpoint,
void DisableTracing() override {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
tracing_session_host_->DisableTracing();
if (tracing_session_host_)
tracing_session_host_->DisableTracing();
}
void Flush(uint32_t timeout_ms, FlushCallback callback) override {
......
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