Browse Source

handle deleting an item multiple times, log when we do so I can try

to track it down.. hmm.. maybe need to throw in a back trace..

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

+ 4
- 0
ContentDirectory.py View File

@@ -65,6 +65,10 @@ class ContentDirectoryControl(UPnPPublisher, dict):
return i.id

def delItem(self, id):
if not self.has_key(id):
log.msg('already removed:', id)
return
log.msg('removing:', id)
if isinstance(self[id], Container):
while self.children[id]:
self.delItem(self.children[id][0])


Loading…
Cancel
Save