Commit e53441a8 authored by Dmitry Gozman's avatar Dmitry Gozman Committed by Commit Bot

DocumentLoader: unpause virtual time when destroying body loader

Virtual time should only be paused while body loader is active.

Bug: none
Change-Id: I479bc7e85c7dd30dfaf5fc8f61c5be6cd6859288
Reviewed-on: https://chromium-review.googlesource.com/c/1483215
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: default avatarAndrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634810}
parent 7eab6048
......@@ -951,6 +951,7 @@ void DocumentLoader::ProcessDataBuffer() {
void DocumentLoader::StopLoading() {
fetcher_->StopFetching();
body_loader_.reset();
virtual_time_pauser_.UnpauseVirtualTime();
if (!SentDidFinishLoad())
LoadFailed(ResourceError::CancelledError(Url()));
}
......
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