aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 21:02:03 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 21:37:19 +0100
commitfa67a4e956461019e35bd6029e9df24bce680d66 (patch)
treec7b6254b4309a704f850b377355d4613862255c2 /src
parentbf9352fb268384f428332b0aabeaefcc9c1e4843 (diff)
downloadmpd-fa67a4e956461019e35bd6029e9df24bce680d66.tar.gz
mpd-fa67a4e956461019e35bd6029e9df24bce680d66.tar.xz
mpd-fa67a4e956461019e35bd6029e9df24bce680d66.zip
db/upnp: break when zero objects have been returned
Diffstat (limited to '')
-rw-r--r--src/db/upnp/ContentDirectoryService.cxx3
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;
}