projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf434c0
)
core: Fix endless loop if item disappears
author
Jens Georg
<mail@jensge.org>
Tue, 8 Nov 2011 07:41:07 +0000
(08:41 +0100)
committer
Jens Georg
<mail@jensge.org>
Tue, 8 Nov 2011 07:41:07 +0000
(08:41 +0100)
src/rygel/rygel-http-post.vala
patch
|
blob
|
history
diff --git
a/src/rygel/rygel-http-post.vala
b/src/rygel/rygel-http-post.vala
index
ba60287
..
51e9cbd
100644
(file)
--- a/
src/rygel/rygel-http-post.vala
+++ b/
src/rygel/rygel-http-post.vala
@@
-120,6
+120,14
@@
internal class Rygel.HTTPPost : HTTPRequest {
break;
}
+ // This means that either someone externally has removed the item
+ // or that the back-end decided it's not a shareable item anymore.
+ if (item == null) {
+ warning ("Item %s disappeared, stop waiting for it");
+
+ break;
+ }
+
if (item.place_holder) {
uint source_id = 0;
source_id = Timeout.add_seconds (30, () => {