Skip to content

Commit

Permalink
changed: abort upnp directory reading if received count ever is large…
Browse files Browse the repository at this point in the history
…r than expected
  • Loading branch information
elupus committed Feb 13, 2012
1 parent ec70e26 commit 296435b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -284,7 +284,7 @@ PLT_SyncMediaBrowser::BrowseSync(PLT_DeviceDataReference& device,
// nothing is returned back by the server.
// Unless we were told to stop after reaching a certain amount to avoid
// length delays
if ((browse_data->info.tm && browse_data->info.tm == list->GetItemCount()) ||
if ((browse_data->info.tm && browse_data->info.tm <= list->GetItemCount()) ||
(max_results && list->GetItemCount() >= max_results))
break;

Expand Down

0 comments on commit 296435b

Please sign in to comment.