From 3250e2e28633d6a2ae7f280c521ebca8e7577c96 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 5 Sep 2006 22:22:38 -0800 Subject: [PATCH] This seems to have fixed the problem of things appearing and disappearing... [git-p4: depot-paths = "//depot/": change = 883] --- ContentDirectory.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ContentDirectory.py b/ContentDirectory.py index 93b96b1..9ae5734 100644 --- a/ContentDirectory.py +++ b/ContentDirectory.py @@ -207,10 +207,14 @@ class ContentDirectoryControl(UPnPPublisher, dict): didl = DIDLElement() result = {} + # return error code if we don't exist anymore + if ObjectID not in self: + raise errorCode(701) + # check to see if object needs to be updated self[ObjectID].checkUpdate() - # return error code if we don't exist anymore + # make sure we still exist, we could of deleted ourself if ObjectID not in self: raise errorCode(701)