Permalink
Browse files

changed: abort upnp directory reading if received count ever is large…

…r than expected
  • Loading branch information...
1 parent ec70e26 commit 296435b9a9262b23b49cbfb2302e36e730f292e7 @elupus elupus committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/libUPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp
@@ -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;

0 comments on commit 296435b

Please sign in to comment.