db/upnp: break when zero objects have been returned

This commit is contained in:
Max Kellermann 2014-01-22 21:02:03 +01:00
parent bf9352fb26
commit fa67a4e956

View File

@ -123,6 +123,9 @@ ContentDirectoryService::readDir(UpnpClient_Handle handle,
count, total, error))
return false;
if (count == 0)
return true;
offset += count;
}