Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop scanning directory if scan is cancelled. #9620

Merged
merged 1 commit into from
Jun 3, 2016

Conversation

tgagneret
Copy link
Contributor

@tgagneret tgagneret commented Apr 13, 2016

If the list of paths are remote directories which are unreachable it won't enter the DoScan function (because the directories will be seen as non-existent) and it continues the scan of the directories. So we allow the possibility to exit the directory scan loop at each iteration.

For example if there is 10 remote directories and we are stopping the scan after 6, it would avoid to have 4 connections timeout before exiting the loop.

@tamland
Copy link
Member

tamland commented Apr 17, 2016

This doesn't look complete. If you just exit the loop, it will proceed with cleaning/compression the db below.

@tamland tamland added Type: Improvement non-breaking change which improves existing functionality Component: Video labels Apr 17, 2016
@tgagneret
Copy link
Contributor Author

Hi,
I hope I correctly understood what was the problem, and did the correct fix with this new commit.

@da-anda
Copy link
Member

da-anda commented Jun 2, 2016

@tamland mind having a look again?

@tamland
Copy link
Member

tamland commented Jun 2, 2016

@tgagneret Can you please format according to Code guidelines and squash down to one commit? Logic-wise it should be good.

If the list of paths are remote directories which are unreachables, it won't
enter the DoScan function (because the directories will be seen as non-existent)
and it continues the scan of the directories. So we allow the possibility to
exit the directory scan loop at each iteration.
@tgagneret
Copy link
Contributor Author

@tamland Done

@tamland
Copy link
Member

tamland commented Jun 3, 2016

thanks!

@tamland tamland merged commit 7ab69d2 into xbmc:master Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Improvement non-breaking change which improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants