diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 21:02:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 21:37:19 +0100 |
commit | fa67a4e956461019e35bd6029e9df24bce680d66 (patch) | |
tree | c7b6254b4309a704f850b377355d4613862255c2 /src | |
parent | bf9352fb268384f428332b0aabeaefcc9c1e4843 (diff) | |
download | mpd-fa67a4e956461019e35bd6029e9df24bce680d66.tar.gz mpd-fa67a4e956461019e35bd6029e9df24bce680d66.tar.xz mpd-fa67a4e956461019e35bd6029e9df24bce680d66.zip |
db/upnp: break when zero objects have been returned
Diffstat (limited to 'src')
-rw-r--r-- | src/db/upnp/ContentDirectoryService.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/upnp/ContentDirectoryService.cxx b/src/db/upnp/ContentDirectoryService.cxx index d4e5fec59..3bf6e159d 100644 --- a/src/db/upnp/ContentDirectoryService.cxx +++ b/src/db/upnp/ContentDirectoryService.cxx @@ -123,6 +123,9 @@ ContentDirectoryService::readDir(UpnpClient_Handle handle, count, total, error)) return false; + if (count == 0) + return true; + offset += count; } |