From fa67a4e956461019e35bd6029e9df24bce680d66 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 21:02:03 +0100 Subject: [PATCH] db/upnp: break when zero objects have been returned --- src/db/upnp/ContentDirectoryService.cxx | 3 +++ 1 file changed, 3 insertions(+) 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; }