Browse Source

This seems to have fixed the problem of things appearing and

disappearing...

[git-p4: depot-paths = "//depot/": change = 883]
v0.3
John-Mark Gurney 18 years ago
parent
commit
3250e2e286
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      ContentDirectory.py

+ 5
- 1
ContentDirectory.py View File

@@ -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)



Loading…
Cancel
Save