owncloud/core — pull request #3335 by MTGap (2013-05-13 15:22:04+00:00)
Title: Prevent backgroundScan() from looping

The Dropbox storage library was returning an unexpected result for empty directories which resulted in opendir() returning false. The backgroundScan() kept trying to scan this folder because the folder was always returned by getIncomplete(). Now it should only try once for failing scans.

@icewind1991