Skip to content

Commit

Permalink
Merge pull request #9620 from tgagneret/fix/videoScanning_stop
Browse files Browse the repository at this point in the history
Stop scanning directory if scan is cancelled.
  • Loading branch information
tamland committed Jun 3, 2016
2 parents 7132dcd + 9f5e93d commit 7ab69d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbmc/video/VideoInfoScanner.cpp
Expand Up @@ -139,7 +139,11 @@ namespace VIDEO
* occurs.
*/
std::string directory = *m_pathsToScan.begin();
if (!CDirectory::Exists(directory))
if (m_bStop)
{
bCancelled = true;
}
else if (!CDirectory::Exists(directory))
{
/*
* Note that this will skip clean (if m_bClean is enabled) if the directory really
Expand Down

0 comments on commit 7ab69d2

Please sign in to comment.