Commit ab5970db authored by yawano's avatar yawano Committed by Commit bot

Cancel on-going scan when change directory is requested.

BUG=477554
TEST=manually tested as described in the issue.

Review URL: https://codereview.chromium.org/1086353002

Cr-Commit-Position: refs/heads/master@{#325424}
parent 42c2af47
......@@ -924,6 +924,10 @@ DirectoryModel.prototype.changeDirectoryEntry = function(
this.changeDirectorySequence_++;
this.clearSearch_();
// If there is on-going scan, cancel it.
if (this.currentDirContents_.isScanning())
this.currentDirContents_.cancelScan();
this.directoryChangeQueue_.run(function(sequence, queueTaskCallback) {
this.fileWatcher_.changeWatchedDirectory(
dirEntry,
......
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